Skip to content

test: tolerate graphed's positional-session deprecation - #1787

Merged
ariostas merged 1 commit into
scikit-hep:mainfrom
graphed-org:test/graphed-session-deprecation
Oct 28, 2026
Merged

ariostas merged 1 commit into
scikit-hep:mainfrom
graphed-org:test/graphed-session-deprecation

Conversation

@lgray

@lgray lgray commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

🤖 AI text below 🤖

graphed 0.0.10 deprecates passing a Session positionally to its array-less readers (from_awkward(session, ...) → from_awkward(..., session=session)). uproot's filterwarnings = ["error"] turns that DeprecationWarning into a failure in two tests that call such a reader positionally:

  • tests/test_1720_graphed_read.py::test_head_requires_one_uproot_source
  • tests/test_1720_graphed_write.py::test_refusals_happen_before_anything_is_written

Each gets @pytest.mark.filterwarnings("ignore:.*is deprecated; pass session=:DeprecationWarning"). The marker is inert on graphed 0.0.9, so this can merge now.

graphed marker result
0.0.9 (PyPI) yes 2 passed
0.0.9 (PyPI) no 2 passed
0.0.10 candidate (graphed-org/graphed#121) yes 2 passed
0.0.10 candidate no 2 failed: DeprecationWarning: from_awkward(session, ...) is deprecated; pass session= as a keyword

graphed 0.0.10 makes session= an optional keyword on its readers and
warns on the positional Session form. Under filterwarnings = ["error"]
the two tests that call from_awkward(Session, ...) positionally would
fail; the positional form is the only one graphed 0.0.9 accepts, so
they keep it and ignore that one warning.

Assisted-by: ClaudeCode:claude-opus-5-5
@github-actions github-actions Bot added the type/test PR title type: test (set automatically) label Oct 28, 2026
@codecov

codecov Bot commented Oct 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.93%. Comparing base (7086728) to head (0c5952c).

Additional details and impacted files

@lgray

lgray commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor Author

@ariostas this one is pretty simple - may I go ahead and merge it? (it's to not fail on some deprecation warnings that are coming in graphed 0.0.10).

@lgray

lgray commented Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

@ariostas ping over here - this one is blocking moving forward with a PR on the graphed side (just to make sure uproot doesn't break when we go to 0.0.10.

@ariostas
ariostas merged commit abfb593 into scikit-hep:main Oct 28, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/test PR title type: test (set automatically)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants