Explorar o código

testsuite: archiver: skip test_umask on Windows

Windows does not have file modes, so os.stat always returns 777.
Rayyan Ansari %!s(int64=2) %!d(string=hai) anos
pai
achega
061397740c
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/borg/testsuite/archiver/create_cmd.py

+ 1 - 0
src/borg/testsuite/archiver/create_cmd.py

@@ -501,6 +501,7 @@ class ArchiverTestCase(ArchiverTestCaseBase):
         self.cmd(f"--repo={self.repository_location}", "create", "test", "input", "input")
 
     @pytest.mark.skipif("BORG_TESTS_IGNORE_MODES" in os.environ, reason="modes unreliable")
+    @pytest.mark.skipif(is_win32, reason="modes unavailable on Windows")
     def test_umask(self):
         self.create_regular_file("file1", size=1024 * 80)
         self.cmd(f"--repo={self.repository_location}", "rcreate", RK_ENCRYPTION)