[Python-checkins] python/dist/src/Lib/test test_tempfile.py, 1.14.8.3, 1.14.8.4

gvanrossum at users.sourceforge.net gvanrossum at users.sourceforge.net
Wed Mar 31 13:55:20 EST 2004


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7522

Modified Files:
      Tag: release23-maint
	test_tempfile.py 
Log Message:
Backport 1.17:
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.14.8.3
retrieving revision 1.14.8.4
diff -C2 -d -r1.14.8.3 -r1.14.8.4
*** test_tempfile.py	23 Oct 2003 15:55:03 -0000	1.14.8.3
--- test_tempfile.py	31 Mar 2004 18:55:17 -0000	1.14.8.4
***************
*** 474,477 ****
--- 474,478 ----
          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