Skip to content

Commit

Permalink
gh-73991: Skip permission test if running as *nix superuser (GH-120994)
Browse files Browse the repository at this point in the history
  • Loading branch information
encukou authored Jun 26, 2024
1 parent d2646e3 commit 9056597
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Lib/test/test_pathlib/test_pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,7 @@ def test_open_unbuffered(self):
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'
Expand Down

0 comments on commit 9056597

Please sign in to comment.