Browse Source

pypy3 on Windows has os.symlink, but it raises NotImplementedError.

Jelmer Vernooij 4 năm trước cách đây
mục cha
commit
9c9e0ec8db
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      dulwich/tests/test_index.py

+ 1 - 1
dulwich/tests/test_index.py

@@ -82,7 +82,7 @@ def can_symlink():
     test_target = test_source + 'can_symlink'
     try:
         os.symlink(test_source, test_target)
-    except OSError:
+    except (NotImplementedError, OSError):
         return False
     return True