diff --git a/borg/testsuite/archiver.py b/borg/testsuite/archiver.py index 67b5e581b..815c8943a 100644 --- a/borg/testsuite/archiver.py +++ b/borg/testsuite/archiver.py @@ -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