diff options
author | Barry Warsaw <barry@python.org> | 2001-08-20 22:37:34 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2001-08-20 22:37:34 (GMT) |
commit | 7fdfc3885c17247983cc7ad63db5c5e96efbdb8b (patch) | |
tree | 42c19c27930fb828b8ad4a2434ec0ce83d80ec13 /Lib/test/test_largefile.py | |
parent | 08fca5212528e073600c27c70a34eeef445f393b (diff) | |
download | cpython-7fdfc3885c17247983cc7ad63db5c5e96efbdb8b.zip cpython-7fdfc3885c17247983cc7ad63db5c5e96efbdb8b.tar.gz cpython-7fdfc3885c17247983cc7ad63db5c5e96efbdb8b.tar.bz2 |
Use test_support.requires() to decide whether additional largefile
tests should be run.
Diffstat (limited to 'Lib/test/test_largefile.py')
-rw-r--r-- | Lib/test/test_largefile.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Lib/test/test_largefile.py b/Lib/test/test_largefile.py index 1b404b6..1130107 100644 --- a/Lib/test/test_largefile.py +++ b/Lib/test/test_largefile.py @@ -30,13 +30,14 @@ 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 test_support.use_large_resources must be defined to run this test -if sys.platform[:3] == 'win' and not test_support.use_large_resources: - raise test_support.TestSkipped, \ - "test requires %s bytes and a long time to run" % str(size) - +# 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 +# executed. +if sys.platform[:3] == 'win': + test_support.requires( + 'largefile', + 'test requires %s bytes and a long time to run' % str(size)) def expect(got_this, expect_this): |