Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-73991: Skip permission test if running as *nix superuser
  • Loading branch information
encukou committed Jun 25, 2024
commit a614f7b0fc1a12d917c0f811fcc2345a1859b917
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