diff options
author | Guido van Rossum <guido@python.org> | 2001-09-10 15:03:18 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-09-10 15:03:18 (GMT) |
commit | a31ddbbd7bda1f09944534498ca88fe2d57e508a (patch) | |
tree | d4034735723abb77d65e2b5ad98975c1446b570e /Lib/test/test_largefile.py | |
parent | d0b69eceb446ac7176f96c3849c6997ec4ce134f (diff) | |
download | cpython-a31ddbbd7bda1f09944534498ca88fe2d57e508a.zip cpython-a31ddbbd7bda1f09944534498ca88fe2d57e508a.tar.gz cpython-a31ddbbd7bda1f09944534498ca88fe2d57e508a.tar.bz2 |
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).
Diffstat (limited to 'Lib/test/test_largefile.py')
-rw-r--r-- | Lib/test/test_largefile.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_largefile.py b/Lib/test/test_largefile.py index 407aba8..e030160 100644 --- a/Lib/test/test_largefile.py +++ b/Lib/test/test_largefile.py @@ -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), |