Skip to content

Commit

Permalink
remove deprecated LEGACY_PATH support.
Browse files Browse the repository at this point in the history
Pytest 8.1.0 removed support for that.

No need to change our supported Pytest range, the modern pathlib.Path
support has been there since Pytest 7.0
  • Loading branch information
mr-c committed Mar 4, 2024
1 parent 7493f2e commit 2e77b4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ PYSOURCES=$(wildcard ${MODULE}/**.py tests/*.py)
DEVPKGS=-rdev-requirements.txt -rtest-requirements.txt -rmypy-requirements.txt
DEBDEVPKGS=pep8 python-autopep8 pylint python-coverage pydocstyle sloccount \
python-flake8 python-mock shellcheck
VERSION=2.4.$(shell TZ=UTC git log --first-parent --max-count=1 \
VERSION=2.5.$(shell TZ=UTC git log --first-parent --max-count=1 \
--format=format:%cd --date=format-local:%Y%m%d%H%M%S)

## all : default task (install in dev mode)
Expand Down
3 changes: 1 addition & 2 deletions cwltest/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@

if TYPE_CHECKING:
from _pytest._code.code import ExceptionInfo, _TracebackStyle
from _pytest.compat import LEGACY_PATH
from _pytest.config import Config
from _pytest.config import Config as PytestConfig
from _pytest.config import PytestPluginManager
Expand Down Expand Up @@ -342,7 +341,7 @@ def _doc_options() -> argparse.ArgumentParser:


def pytest_collect_file(
file_path: Path, path: "LEGACY_PATH", parent: pytest.Collector
file_path: Path, parent: pytest.Collector
) -> Optional[pytest.Collector]:
"""Is this file for us."""
if (
Expand Down

0 comments on commit 2e77b4e

Please sign in to comment.