diff options
author | Carl Meyer <carl@oddbird.net> | 2023-08-31 00:15:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-31 00:15:31 (GMT) |
commit | 157b89e55ed1ec12418a4853a0ba10eabc11ce60 (patch) | |
tree | f75c59cbcf1ba1b128c8112fcea23392cca0e3ae | |
parent | d52c4482a82f3f98f1a78efa948144a1fe3c52b2 (diff) | |
download | cpython-157b89e55ed1ec12418a4853a0ba10eabc11ce60.zip cpython-157b89e55ed1ec12418a4853a0ba10eabc11ce60.tar.gz cpython-157b89e55ed1ec12418a4853a0ba10eabc11ce60.tar.bz2 |
gh-108696: revert bypassing import cache in test_import helper (#108698)
-rw-r--r-- | Lib/test/test_import/__init__.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_import/__init__.py b/Lib/test/test_import/__init__.py index 5591987..051711b 100644 --- a/Lib/test/test_import/__init__.py +++ b/Lib/test/test_import/__init__.py @@ -25,7 +25,6 @@ from unittest import mock import _testinternalcapi import _imp -from test.support import import_helper from test.support import os_helper from test.support import ( STDLIB_DIR, swap_attr, swap_item, cpython_only, is_emscripten, @@ -59,7 +58,7 @@ skip_if_dont_write_bytecode = unittest.skipIf( def _require_loader(module, loader, skip): if isinstance(module, str): - module = import_helper.import_fresh_module(module) + module = __import__(module) MODULE_KINDS = { BuiltinImporter: 'built-in', |