Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a31ddbb

Browse files
committed
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).
1 parent d0b69ec commit a31ddbb

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Lib/test/test_largefile.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
import os, struct, stat, sys
1212

1313

14+
# create >2GB file (2GB = 2147483648 bytes)
15+
size = 2500000000L
16+
name = test_support.TESTFN
17+
18+
1419
# On Windows this test comsumes large resources; It takes a long time to build
1520
# the >2GB file and takes >2GB of disk space therefore the resource must be
1621
# enabled to run this test. If not, nothing after this line stanza will be
@@ -38,11 +43,6 @@
3843
f.close()
3944

4045

41-
# create >2GB file (2GB = 2147483648 bytes)
42-
size = 2500000000L
43-
name = test_support.TESTFN
44-
45-
4646
def expect(got_this, expect_this):
4747
if test_support.verbose:
4848
print '%r =?= %r ...' % (got_this, expect_this),

0 commit comments

Comments
 (0)