Ver Fonte

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

Jelmer Vernooij há 4 anos atrás
pai
commit
9c9e0ec8db
1 ficheiros alterados com 1 adições e 1 exclusões
  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'
     test_target = test_source + 'can_symlink'
     try:
     try:
         os.symlink(test_source, test_target)
         os.symlink(test_source, test_target)
-    except OSError:
+    except (NotImplementedError, OSError):
         return False
         return False
     return True
     return True