diff options
Diffstat (limited to 'Lib/test/test_largefile.py')
-rw-r--r-- | Lib/test/test_largefile.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_largefile.py b/Lib/test/test_largefile.py index 21296cc..25b8ff0 100644 --- a/Lib/test/test_largefile.py +++ b/Lib/test/test_largefile.py @@ -5,6 +5,7 @@ import os import stat import sys import unittest +from test import support from test.support import TESTFN, requires, unlink import io # C implementation of io import _pyio as pyio # Python implementation of io @@ -145,7 +146,7 @@ def setUpModule(): # takes a long time to build the >2 GiB file and takes >2 GiB 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' or sys.platform == 'darwin': + if support.MS_WINDOWS or support.MACOS: requires('largefile', 'test requires %s bytes and a long time to run' % str(size)) else: |