Skip to content

Commit 2e77b4e

Browse files
committed
remove deprecated LEGACY_PATH support.
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
1 parent 7493f2e commit 2e77b4e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ PYSOURCES=$(wildcard ${MODULE}/**.py tests/*.py)
2929
DEVPKGS=-rdev-requirements.txt -rtest-requirements.txt -rmypy-requirements.txt
3030
DEBDEVPKGS=pep8 python-autopep8 pylint python-coverage pydocstyle sloccount \
3131
python-flake8 python-mock shellcheck
32-
VERSION=2.4.$(shell TZ=UTC git log --first-parent --max-count=1 \
32+
VERSION=2.5.$(shell TZ=UTC git log --first-parent --max-count=1 \
3333
--format=format:%cd --date=format-local:%Y%m%d%H%M%S)
3434

3535
## all : default task (install in dev mode)

cwltest/plugin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
if TYPE_CHECKING:
2929
from _pytest._code.code import ExceptionInfo, _TracebackStyle
30-
from _pytest.compat import LEGACY_PATH
3130
from _pytest.config import Config
3231
from _pytest.config import Config as PytestConfig
3332
from _pytest.config import PytestPluginManager
@@ -342,7 +341,7 @@ def _doc_options() -> argparse.ArgumentParser:
342341

343342

344343
def pytest_collect_file(
345-
file_path: Path, path: "LEGACY_PATH", parent: pytest.Collector
344+
file_path: Path, parent: pytest.Collector
346345
) -> Optional[pytest.Collector]:
347346
"""Is this file for us."""
348347
if (

0 commit comments

Comments
 (0)