[Python-checkins] python/dist/src/Lib/test test_tempfile.py,1.12,1.13

jackjansen@users.sourceforge.net jackjansen@users.sourceforge.net
2003年1月08日 08:30:39 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv28712/Lib/test
Modified Files:
	test_tempfile.py 
Log Message:
Added the Mac to platforms that don't have user/group/other modes.
Set the limit for the number of open files to 32 if platform==mac.
Index: test_tempfile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_tempfile.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** test_tempfile.py	22 Nov 2002 20:13:43 -0000	1.12
--- test_tempfile.py	8 Jan 2003 16:30:34 -0000	1.13
***************
*** 26,30 ****
 # TEST_FILES may need to be tweaked for systems depending on the maximum
 # number of files that can be opened at one time (see ulimit -n)
! TEST_FILES = 100
 
 # This is organized as one test for each chunk of code in tempfile.py,
--- 26,33 ----
 # TEST_FILES may need to be tweaked for systems depending on the maximum
 # number of files that can be opened at one time (see ulimit -n)
! if sys.platform == 'mac':
! TEST_FILES = 32
! else:
! TEST_FILES = 100
 
 # This is organized as one test for each chunk of code in tempfile.py,
***************
*** 259,263 ****
 mode = stat.S_IMODE(os.stat(file.name).st_mode)
 expected = 0600
! if sys.platform in ('win32', 'os2emx'):
 # There's no distinction among 'user', 'group' and 'world';
 # replicate the 'user' bits.
--- 262,266 ----
 mode = stat.S_IMODE(os.stat(file.name).st_mode)
 expected = 0600
! if sys.platform in ('win32', 'os2emx', 'mac'):
 # There's no distinction among 'user', 'group' and 'world';
 # replicate the 'user' bits.
***************
*** 464,468 ****
 mode = stat.S_IMODE(os.stat(dir).st_mode)
 expected = 0700
! if sys.platform in ('win32', 'os2emx'):
 # There's no distinction among 'user', 'group' and 'world';
 # replicate the 'user' bits.
--- 467,471 ----
 mode = stat.S_IMODE(os.stat(dir).st_mode)
 expected = 0700
! if sys.platform in ('win32', 'os2emx', 'mac'):
 # There's no distinction among 'user', 'group' and 'world';
 # replicate the 'user' bits.

AltStyle によって変換されたページ (->オリジナル) /