From 887d6b8937bd74c729c89b589ec8adaa557a78cf Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Fri, 11 Dec 2020 13:55:48 -0300 Subject: [PATCH] Skip test_samefile_symlink on pypy3 on Windows --- testing/path/test_local.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testing/path/test_local.py b/testing/path/test_local.py index a6b8f476..1b9a7923 100644 --- a/testing/path/test_local.py +++ b/testing/path/test_local.py @@ -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)