]> granicus.if.org Git - python/commitdiff
Move the global variables 'size' and 'name' to the top -- these are
authorGuido van Rossum <guido@python.org>
Mon, 10 Sep 2001 15:03:18 +0000 (15:03 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 10 Sep 2001 15:03:18 +0000 (15:03 +0000)
"module parameters", and used in the Windows test (which crashed
because size was undefined -- sigh).

Lib/test/test_largefile.py

index 407aba81e09fe4c218a8fe420a29a897eab52930..e0301604c0b2eb960853029a8d67915db6d65c91 100644 (file)
@@ -11,6 +11,11 @@ import test_support
 import os, struct, stat, sys
 
 
+# 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
 # enabled to run this test.  If not, nothing after this line stanza will be
@@ -38,11 +43,6 @@ else:
         f.close()
 
 
-# create >2GB file (2GB = 2147483648 bytes)
-size = 2500000000L
-name = test_support.TESTFN
-
-
 def expect(got_this, expect_this):
     if test_support.verbose:
         print '%r =?= %r ...' % (got_this, expect_this),