Skip to content

Commit

Permalink
test: pytest: use collection_path argument
Browse files Browse the repository at this point in the history
The path argument is deprecated since pytest 7 and an additional
argument collection_path is now available.

This silences the deprecation warning on pytest 8.
  • Loading branch information
jelly committed Sep 20, 2024
1 parent 5ce7b4c commit 54ccf5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/pytest/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def any_subprocesses() -> bool:
# - there are general issues running under tox which need investigation
if 'NO_QUNIT' in os.environ:
@pytest.hookimpl
def pytest_ignore_collect(path) -> 'bool | None':
return path.basename == 'test_browser.py' or None
def pytest_ignore_collect(collection_path) -> 'bool | None':
return collection_path.basename == 'test_browser.py' or None
else:
pytest_plugins = "js_coverage"

Expand Down

0 comments on commit 54ccf5c

Please sign in to comment.