diff options
| author | Gregory P. Smith <greg@krypto.org> | 2014-01-20 09:10:33 (GMT) |
|---|---|---|
| committer | Gregory P. Smith <greg@krypto.org> | 2014-01-20 09:10:33 (GMT) |
| commit | b599c61179dcc675def318e093dae87a80e01c74 (patch) | |
| tree | 2f705a34747fbd325d46bc4e252d368549727b99 /Lib/test/test_pathlib.py | |
| parent | 27b490c71385341ce32c6540d98632032c440159 (diff) | |
| download | cpython-b599c61179dcc675def318e093dae87a80e01c74.zip cpython-b599c61179dcc675def318e093dae87a80e01c74.tar.gz cpython-b599c61179dcc675def318e093dae87a80e01c74.tar.bz2 | |
Fix the unittest to run properly when the working directory has
additional bits set (such as the setgid or sticky bits).
Diffstat (limited to 'Lib/test/test_pathlib.py')
| -rw-r--r-- | Lib/test/test_pathlib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py index a54eef5..2268f94 100644 --- a/Lib/test/test_pathlib.py +++ b/Lib/test/test_pathlib.py @@ -1549,7 +1549,7 @@ class _BasePathTest(object): self.assertTrue(p.is_dir()) if os.name != 'nt': # the directory's permissions follow the mode argument - self.assertEqual(stat.S_IMODE(p.stat().st_mode), 0o555 & mode) + self.assertEqual(stat.S_IMODE(p.stat().st_mode), 0o7555 & mode) # the parent's permissions follow the default process settings self.assertEqual(stat.S_IMODE(p.parent.stat().st_mode), mode) |
