From 0c5952c43cfb85786c105911a2e567e60d446847 Mon Sep 17 00:00:00 2001 From: Lindsey Gray Date: Tue, 27 Oct 2026 19:30:13 -0500 Subject: [PATCH] test: tolerate graphed's positional-session deprecation 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 --- tests/test_1720_graphed_read.py | 1 + tests/test_1720_graphed_write.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/test_1720_graphed_read.py b/tests/test_1720_graphed_read.py index 6e3ed06ee..c0f03a781 100644 --- a/tests/test_1720_graphed_read.py +++ b/tests/test_1720_graphed_read.py @@ -292,6 +292,7 @@ def test_head_reads_only_the_first_file_and_the_needed_branches(tmp_path): assert seen == [(a, ("y",), 0, 4)] # 6 asked, 4 in the first file: it stops there +@pytest.mark.filterwarnings("ignore:.*is deprecated; pass session=:DeprecationWarning") def test_head_requires_one_uproot_source(): from graphed.awkward import AwkwardBackend, from_awkward diff --git a/tests/test_1720_graphed_write.py b/tests/test_1720_graphed_write.py index e5dea5f09..6a6267d0d 100644 --- a/tests/test_1720_graphed_write.py +++ b/tests/test_1720_graphed_write.py @@ -228,6 +228,7 @@ def test_externals_reach_the_write_workers(tmp_path): assert ak.array_equal(_back(paths).a, 2 * uproot.open(src).arrays().x) +@pytest.mark.filterwarnings("ignore:.*is deprecated; pass session=:DeprecationWarning") def test_refusals_happen_before_anything_is_written(tmp_path): src = _make_tree(os.path.join(tmp_path, "in.root")) out = os.path.join(tmp_path, "out")