mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Fix the unittest to run properly when the working directory has
additional bits set (such as the setgid or sticky bits).
This commit is contained in:
parent
27b490c713
commit
b599c61179
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue