summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_import
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2022-12-23 20:17:24 (GMT)
committerGitHub <noreply@github.com>2022-12-23 20:17:24 (GMT)
commit745545b5bb847023f90505bf9caa983463413780 (patch)
tree1b6db7fc6c92542ac9bc56769524ee26ce9eb10e /Lib/test/test_import
parentc5726b727e26b81a267933654cf26b760a90d9aa (diff)
downloadcpython-745545b5bb847023f90505bf9caa983463413780.zip
cpython-745545b5bb847023f90505bf9caa983463413780.tar.gz
cpython-745545b5bb847023f90505bf9caa983463413780.tar.bz2
gh-99482: remove `jython` compatibility parts from stdlib and tests (#99484)
Diffstat (limited to 'Lib/test/test_import')
-rw-r--r--Lib/test/test_import/__init__.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/test/test_import/__init__.py b/Lib/test/test_import/__init__.py
index 6c5b80b..1e4429e 100644
--- a/Lib/test/test_import/__init__.py
+++ b/Lib/test/test_import/__init__.py
@@ -20,7 +20,7 @@ from unittest import mock
from test.support import os_helper
from test.support import (
- STDLIB_DIR, is_jython, swap_attr, swap_item, cpython_only, is_emscripten,
+ STDLIB_DIR, swap_attr, swap_item, cpython_only, is_emscripten,
is_wasi)
from test.support.import_helper import (
forget, make_legacy_pyc, unlink, unload, DirsOnSysPath, CleanImport)
@@ -163,10 +163,7 @@ class ImportTests(unittest.TestCase):
def test_with_extension(ext):
# The extension is normally ".py", perhaps ".pyw".
source = TESTFN + ext
- if is_jython:
- pyc = TESTFN + "$py.class"
- else:
- pyc = TESTFN + ".pyc"
+ pyc = TESTFN + ".pyc"
with open(source, "w", encoding='utf-8') as f:
print("# This tests Python's ability to import a",