https://github.com/python/cpython/commit/3908593039bde9d4b591ab09919003ee57418d64
commit: 3908593039bde9d4b591ab09919003ee57418d64
branch: main
author: Jakub KulĂk <[email protected]>
committer: encukou <[email protected]>
date: 2026-04-03T10:47:59+02:00
summary:
test_copy_dir_no_read_permission requires non root user (GH-148028)
This fixes a bug introduced in commit 86b8617747699416fcf9cd4ce6ea1da58a66f70e
(GH-146195).
files:
M Lib/test/test_pathlib/test_pathlib.py
diff --git a/Lib/test/test_pathlib/test_pathlib.py
b/Lib/test/test_pathlib/test_pathlib.py
index d346a1a6160d6b..19f4506c109c14 100644
--- a/Lib/test/test_pathlib/test_pathlib.py
+++ b/Lib/test/test_pathlib/test_pathlib.py
@@ -21,6 +21,7 @@
from test.support import infinite_recursion
from test.support import os_helper
from test.support import requires_root_user
+from test.support import requires_non_root_user
from test.support.os_helper import TESTFN, FS_NONASCII, FakePath
try:
import fcntl
@@ -1550,7 +1551,7 @@ def raiser(*args, **kwargs):
self.assertRaises(FileNotFoundError, source.copy, target)
@unittest.skipIf(sys.platform == "win32" or sys.platform == "wasi",
"directories are always readable on Windows and WASI")
- @requires_root_user
+ @requires_non_root_user
def test_copy_dir_no_read_permission(self):
base = self.cls(self.base)
source = base / 'dirE'
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]