diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-06-22 17:25:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-22 17:25:44 (GMT) |
commit | 8fbbdf0c3107c3052659e166f73990b466eacbb0 (patch) | |
tree | 81ce7da212017b7918b2373dc68a50cb9fda52fc /Lib/test/test_import | |
parent | 209abf746985526bce255e2fba97d3246924885d (diff) | |
download | cpython-8fbbdf0c3107c3052659e166f73990b466eacbb0.zip cpython-8fbbdf0c3107c3052659e166f73990b466eacbb0.tar.gz cpython-8fbbdf0c3107c3052659e166f73990b466eacbb0.tar.bz2 |
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_import')
-rw-r--r-- | Lib/test/test_import/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_import/__init__.py b/Lib/test/test_import/__init__.py index fb9453a..a917259 100644 --- a/Lib/test/test_import/__init__.py +++ b/Lib/test/test_import/__init__.py @@ -20,7 +20,7 @@ import contextlib import test.support from test.support import ( - EnvironmentVarGuard, TESTFN, check_warnings, forget, is_jython, + EnvironmentVarGuard, TESTFN, check_warnings, forget, JYTHON, make_legacy_pyc, rmtree, run_unittest, swap_attr, swap_item, temp_umask, unlink, unload, create_empty_file, cpython_only, TESTFN_UNENCODABLE, temp_dir, DirsOnSysPath) @@ -148,7 +148,7 @@ class ImportTests(unittest.TestCase): def test_with_extension(ext): # The extension is normally ".py", perhaps ".pyw". source = TESTFN + ext - if is_jython: + if JYTHON: pyc = TESTFN + "$py.class" else: pyc = TESTFN + ".pyc" |