mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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
This commit is contained in:
parent
209abf7469
commit
8fbbdf0c31
16 changed files with 95 additions and 91 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue