[Python-checkins] cpython: Fix the unittest to run properly when the working directory has
gregory.p.smith
python-checkins at python.org
Mon Jan 20 10:11:28 CET 2014
http://hg.python.org/cpython/rev/1e06e905b0e1
changeset: 88578:1e06e905b0e1
user: Gregory P. Smith <greg at krypto.org>
date: Mon Jan 20 01:10:33 2014 -0800
summary:
Fix the unittest to run properly when the working directory has
additional bits set (such as the setgid or sticky bits).
files:
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
--- a/Lib/test/test_pathlib.py
+++ b/Lib/test/test_pathlib.py
@@ -1549,7 +1549,7 @@
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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list