summaryrefslogtreecommitdiff
path: root/Lib/test/test_largefile.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-06-22 19:25:44 +0200
committerGitHub <noreply@github.com>2018-06-22 19:25:44 +0200
commit8fbbdf0c3107c3052659e166f73990b466eacbb0 (patch)
tree81ce7da212017b7918b2373dc68a50cb9fda52fc /Lib/test/test_largefile.py
parent209abf746985526bce255e2fba97d3246924885d (diff)
downloadcpython-git-8fbbdf0c3107c3052659e166f73990b466eacbb0.tar.gz
bpo-33671: Add support.MS_WINDOWS and support.MACOS (GH-7800)
* Add support.MS_WINDOWS: True if Python is running on Microsoft Windows. * Add support.MACOS: True if Python is running on Apple macOS. * Replace support.is_android with support.ANDROID * Replace support.is_jython with support.JYTHON * Cleanup code to initialize unix_shell
Diffstat (limited to 'Lib/test/test_largefile.py')
-rw-r--r--Lib/test/test_largefile.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_largefile.py b/Lib/test/test_largefile.py
index 21296ccafe..25b8ff01ed 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: