From d6548de26f33cb275410ecad4e367ffb2c064d0d Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Wed, 30 Aug 2023 14:46:12 -0700 Subject: [PATCH] gh-108696: revert bypassing import cache in test_import helper --- Lib/test/test_import/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/test/test_import/__init__.py b/Lib/test/test_import/__init__.py index 559198759c0d23..051711bfd1fe24 100644 --- a/Lib/test/test_import/__init__.py +++ b/Lib/test/test_import/__init__.py @@ -25,7 +25,6 @@ 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 @@ 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',