[Python-checkins] CVS: python/dist/src/Lib/test test_largefile.py,1.9,1.10

Guido van Rossum gvanrossum@users.sourceforge.net
2001年9月10日 08:03:20 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv21745
Modified Files:
	test_largefile.py 
Log Message:
Move the global variables 'size' and 'name' to the top -- these are
"module parameters", and used in the Windows test (which crashed
because size was undefined -- sigh).
Index: test_largefile.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_largefile.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** test_largefile.py	2001年09月10日 13:34:12	1.9
--- test_largefile.py	2001年09月10日 15:03:18	1.10
***************
*** 12,15 ****
--- 12,20 ----
 
 
+ # create >2GB file (2GB = 2147483648 bytes)
+ size = 2500000000L
+ name = test_support.TESTFN
+ 
+ 
 # On Windows this test comsumes large resources; It takes a long time to build
 # the >2GB file and takes >2GB of disk space therefore the resource must be
***************
*** 37,45 ****
 else:
 f.close()
- 
- 
- # create >2GB file (2GB = 2147483648 bytes)
- size = 2500000000L
- name = test_support.TESTFN
 
 
--- 42,45 ----

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