فهرست منبع

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

Jelmer Vernooij 4 سال پیش
والد
کامیت
9c9e0ec8db
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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