]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-73991: Skip permission test if running as *nix superuser (GH-120994)
authorPetr Viktorin <encukou@gmail.com>
Wed, 26 Jun 2024 09:36:09 +0000 (11:36 +0200)
committerGitHub <noreply@github.com>
Wed, 26 Jun 2024 09:36:09 +0000 (11:36 +0200)
Lib/test/test_pathlib/test_pathlib.py

index 6b5e90fbcf718ee2482b833e1c8634ca6ce8fa11..da6d82465d29cfa74a1ae8d8bd27aebc19015b9d 100644 (file)
@@ -654,6 +654,7 @@ class PathTest(test_pathlib_abc.DummyPathTest, PurePathTest):
             self.assertEqual(f.read().strip(), b"this is file A")
 
     @unittest.skipIf(sys.platform == "win32" or sys.platform == "wasi", "directories are always readable on Windows and WASI")
+    @unittest.skipIf(root_in_posix, "test fails with root privilege")
     def test_copytree_no_read_permission(self):
         base = self.cls(self.base)
         source = base / 'dirE'