diff --git a/testing/path/test_local.py b/testing/path/test_local.py index a6b8f476..77e46409 100644 --- a/testing/path/test_local.py +++ b/testing/path/test_local.py @@ -721,7 +721,7 @@ 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 pytest.skip(str(e.args[0]))