Skip to content

Commit 9056597

Browse files
authored
gh-73991: Skip permission test if running as *nix superuser (GH-120994)
1 parent d2646e3 commit 9056597

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_pathlib/test_pathlib.py

+1
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,7 @@ def test_open_unbuffered(self):
654654
self.assertEqual(f.read().strip(), b"this is file A")
655655

656656
@unittest.skipIf(sys.platform == "win32" or sys.platform == "wasi", "directories are always readable on Windows and WASI")
657+
@unittest.skipIf(root_in_posix, "test fails with root privilege")
657658
def test_copytree_no_read_permission(self):
658659
base = self.cls(self.base)
659660
source = base / 'dirE'

0 commit comments

Comments
 (0)