mirror of https://github.com/python/cpython
gh-73991: Skip permission test if running as *nix superuser (GH-120994)
This commit is contained in:
parent
d2646e3f45
commit
9056597224
|
@ -654,6 +654,7 @@ class PathTest(test_pathlib_abc.DummyPathTest, PurePathTest):
|
|||
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'
|
||||
|
|
Loading…
Reference in New Issue