https://github.com/python/cpython/commit/90565972243f33dcd40d60a4f1474b97174fe304
commit: 90565972243f33dcd40d60a4f1474b97174fe304
branch: main
author: Petr Viktorin <[email protected]>
committer: encukou <[email protected]>
date: 2024-06-26T11:36:09+02:00
summary:
gh-73991: Skip permission test if running as *nix superuser (GH-120994)
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 6b5e90fbcf718e..da6d82465d29cf 100644
--- a/Lib/test/test_pathlib/test_pathlib.py
+++ b/Lib/test/test_pathlib/test_pathlib.py
@@ -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'
_______________________________________________
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]