Skip to content

Commit 887d6b8

Browse files
committed
Skip test_samefile_symlink on pypy3 on Windows
1 parent e94e670 commit 887d6b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testing/path/test_local.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -721,8 +721,9 @@ def test_samefile_symlink(tmpdir):
721721
p2 = tmpdir.join("linked.txt")
722722
try:
723723
os.symlink(str(p1), str(p2))
724-
except OSError as e:
724+
except (OSError, NotImplementedError) as e:
725725
# on Windows this might fail if the user doesn't have special symlink permissions
726+
# pypy3 on Windows doesn't implement os.symlink and raises NotImplementedError
726727
pytest.skip(str(e.args[0]))
727728

728729
assert p1.samefile(p2)

0 commit comments

Comments
 (0)