From b75b77f3fcbc6beb00fc678bf02cfc0003c79772 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= Date: Thu, 26 Mar 2026 08:39:16 +0100 Subject: [PATCH] fix: replace deprecated path parameter in pytest_ignore_collect The (path: py.path.local) argument was removed in pytest 9, replaced by (collection_path: pathlib.Path). Made-with: Cursor --- tests/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 2c202a1..dd32866 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -6,6 +6,6 @@ set_default_config(sort_dict_keys=True) -def pytest_ignore_collect(path, config): - if 'test_dataclasses' in str(path) and sys.version_info < (3, 7): +def pytest_ignore_collect(collection_path, config): + if 'test_dataclasses' in str(collection_path) and sys.version_info < (3, 7): return True