Skip to content

Commit

Permalink
tests: drop deprecated parameter
Browse files Browse the repository at this point in the history
    tests/gui/conftest.py:20
      setools/tests/gui/conftest.py:20: PytestRemovedIn9Warning: The (path: py.path.local) argument is deprecated, please use (collection_path: pathlib.Path)
      see https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path
        def pytest_ignore_collect(collection_path: pathlib.Path, path,

    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html

Signed-off-by: Christian Göttsche <[email protected]>
  • Loading branch information
cgzones committed Oct 1, 2024
1 parent 305c8fa commit 7daed1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/gui/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
have_pqtestqt = False


def pytest_ignore_collect(collection_path: pathlib.Path, path,
def pytest_ignore_collect(collection_path: pathlib.Path,
config: pytest.Config) -> bool | None:

"""Ignore GUI tests if DISPLAY is not set or PyQt is not available."""
Expand Down

0 comments on commit 7daed1e

Please sign in to comment.