1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-23 06:31:58 +00:00

Merge pull request #1963 from ThomasWaldmann/fix-win10-lxsys-tests

catch errno.ENOSYS for mknod (win 10 lxsys)
This commit is contained in:
enkore 2016-12-17 11:33:52 +01:00 committed by GitHub
commit 20d3eff8c4

View file

@ -311,7 +311,8 @@ def create_test_files(self):
except PermissionError:
have_root = False
except OSError as e:
if e.errno != errno.EINVAL:
# Note: ENOSYS "Function not implemented" happens as non-root on Win 10 Linux Subsystem.
if e.errno not in (errno.EINVAL, errno.ENOSYS):
raise
have_root = False
return have_root