Skip to content

Commit 5ab8bd4

Browse files
committed
Skip pathlib.PurePath for from_uri test in Python 3.13
1 parent de66662 commit 5ab8bd4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/test_paths.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# 3rd party
2121
import pytest
2222
from coincidence.regressions import AdvancedDataRegressionFixture
23-
from coincidence.selectors import not_pypy, not_windows, only_windows
23+
from coincidence.selectors import not_pypy, not_windows, only_windows, max_version
2424

2525
# this package
2626
from domdf_python_tools import paths
@@ -925,7 +925,11 @@ def test_sort_paths():
925925

926926

927927
@pytest.mark.parametrize("path", _from_uri_paths)
928-
@pytest.mark.parametrize("left_type", [pathlib.PurePath, pathlib.Path, PathPlus])
928+
@pytest.mark.parametrize("left_type", [
929+
pytest.param(pathlib.PurePath, marks=max_version((3, 13))),
930+
pathlib.Path,
931+
PathPlus,
932+
])
929933
def test_pathplus_from_uri(path: str, left_type: Type):
930934
assert PathPlus.from_uri(left_type(path).as_uri()).as_posix() == path
931935

0 commit comments

Comments
 (0)