From 157b89e55ed1ec12418a4853a0ba10eabc11ce60 Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Wed, 30 Aug 2023 18:15:31 -0600 Subject: gh-108696: revert bypassing import cache in test_import helper (#108698) --- 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 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', -- cgit v0.12