Skip to content

Commit 3908593

Browse files
authored
test_copy_dir_no_read_permission requires non root user (GH-148028)
This fixes a bug introduced in commit 86b8617 (GH-146195).
1 parent f3b74d6 commit 3908593

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_pathlib/test_pathlib.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
from test.support import infinite_recursion
2222
from test.support import os_helper
2323
from test.support import requires_root_user
24+
from test.support import requires_non_root_user
2425
from test.support.os_helper import TESTFN, FS_NONASCII, FakePath
2526
try:
2627
import fcntl
@@ -1550,7 +1551,7 @@ def raiser(*args, **kwargs):
15501551
self.assertRaises(FileNotFoundError, source.copy, target)
15511552

15521553
@unittest.skipIf(sys.platform == "win32" or sys.platform == "wasi", "directories are always readable on Windows and WASI")
1553-
@requires_root_user
1554+
@requires_non_root_user
15541555
def test_copy_dir_no_read_permission(self):
15551556
base = self.cls(self.base)
15561557
source = base / 'dirE'

0 commit comments

Comments
 (0)