Skip to content

Commit

Permalink
Skip test_samefile_symlink on pypy3 on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoddemus committed Dec 11, 2020
1 parent e94e670 commit 887d6b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion testing/path/test_local.py
Expand Up @@ -721,8 +721,9 @@ def test_samefile_symlink(tmpdir):
p2 = tmpdir.join("linked.txt")
try:
os.symlink(str(p1), str(p2))
except OSError as e:
except (OSError, NotImplementedError) as e:
# on Windows this might fail if the user doesn't have special symlink permissions
# pypy3 on Windows doesn't implement os.symlink and raises NotImplementedError
pytest.skip(str(e.args[0]))

assert p1.samefile(p2)
Expand Down

0 comments on commit 887d6b8

Please sign in to comment.