diff options
author | Petr Viktorin <encukou@gmail.com> | 2024-06-26 09:36:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-26 09:36:09 (GMT) |
commit | 90565972243f33dcd40d60a4f1474b97174fe304 (patch) | |
tree | 13058ddd53d85a696874296fe66e965c0b3fb64e /Lib/test/test_pathlib/test_pathlib.py | |
parent | d2646e3f45e3e4e831ee2ae84d55b161a361d592 (diff) | |
download | cpython-90565972243f33dcd40d60a4f1474b97174fe304.zip cpython-90565972243f33dcd40d60a4f1474b97174fe304.tar.gz cpython-90565972243f33dcd40d60a4f1474b97174fe304.tar.bz2 |
gh-73991: Skip permission test if running as *nix superuser (GH-120994)
Diffstat (limited to 'Lib/test/test_pathlib/test_pathlib.py')
-rw-r--r-- | Lib/test/test_pathlib/test_pathlib.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_pathlib/test_pathlib.py b/Lib/test/test_pathlib/test_pathlib.py index 6b5e90f..da6d824 100644 --- a/Lib/test/test_pathlib/test_pathlib.py +++ b/Lib/test/test_pathlib/test_pathlib.py @@ -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' |