From b49af65a6d2100fa484dec71ff35495aa820e967 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 4 Jul 2026 23:20:31 +0000 Subject: [PATCH] Fix PytestRemovedIn10Warning in test_sniff parametrize received a generator from Path.glob(), which pytest 10 will reject. sorted() materializes the list and makes the parameter order deterministic as a bonus. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01UnLnhsH25Nnv7LHhekUfPd --- tests/test_sniff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_sniff.py b/tests/test_sniff.py index 62fac86..4bbdb66 100644 --- a/tests/test_sniff.py +++ b/tests/test_sniff.py @@ -6,7 +6,7 @@ import pytest sniff_dir = pathlib.Path(__file__).parent / "sniff" -@pytest.mark.parametrize("filepath", sniff_dir.glob("example*")) +@pytest.mark.parametrize("filepath", sorted(sniff_dir.glob("example*"))) def test_sniff(tmpdir, filepath): db_path = str(tmpdir / "test.db") runner = CliRunner()