Skip to content

Commit 5d21c50

Browse files
committed
Skip unsupported tests on PyPy on Windows
1 parent 1c572f9 commit 5d21c50

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_paths.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
# this package
2424
from domdf_python_tools import paths
25+
from domdf_python_tools.compat import PYPY
2526
from domdf_python_tools.paths import (
2627
PathPlus,
2728
TemporaryPathPlus,
@@ -809,6 +810,13 @@ def test_globpath(pattern: str, filename: str, match: bool):
809810
assert matchglob(filename, pattern) is match
810811

811812

813+
pypy_no_symlink = pytest.mark.skipif(
814+
condition=PYPY and platform.system() == "Windows",
815+
reason="symlink() is not implemented for PyPy on Windows",
816+
)
817+
818+
819+
@pypy_no_symlink
812820
def test_abspath(tmp_pathplus: PathPlus):
813821
assert (tmp_pathplus / "foo" / "bar" / "baz" / "..").abspath() == tmp_pathplus / "foo" / "bar"
814822

@@ -830,6 +838,7 @@ def test_abspath(tmp_pathplus: PathPlus):
830838
assert isinstance((tmp_pathplus / "foo" / "bar" / "baz" / "..").abspath(), PathPlus)
831839

832840

841+
@pypy_no_symlink
833842
def test_abspath_dotted(tmp_pathplus: PathPlus):
834843

835844
file = tmp_pathplus / "baz.py"

0 commit comments

Comments
 (0)