[Python-checkins] python/dist/src/Lib/test test_tempfile.py, 1.16,
1.17
gvanrossum at users.sourceforge.net
gvanrossum at users.sourceforge.net
Wed Mar 31 13:53:32 EST 2004
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7203
Modified Files:
test_tempfile.py
Log Message:
When /tmp has certain sticky bits set, newly created subdirectories
inherit those bits, causing the test_mkdtemp.test_mode() test to fail.
Remove those before comparing the actual mode to the expected mode.
Index: test_tempfile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_tempfile.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** test_tempfile.py 23 Oct 2003 15:55:28 -0000 1.16
--- test_tempfile.py 31 Mar 2004 18:53:29 -0000 1.17
***************
*** 480,483 ****
--- 480,484 ----
try:
mode = stat.S_IMODE(os.stat(dir).st_mode)
+ mode &= 0777 # Mask off sticky bits inherited from /tmp
expected = 0700
if sys.platform in ('win32', 'os2emx', 'mac'):
More information about the Python-checkins
mailing list