gh-73991: Skip permission test if running as *nix superuser (GH-120994)

This commit is contained in:
Petr Viktorin 2024-06-26 11:36:09 +02:00 committed by GitHub
parent d2646e3f45
commit 9056597224
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View 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'