From: Carl Meyer Date: Thu, 31 Aug 2023 00:15:31 +0000 (-0600) Subject: gh-108696: revert bypassing import cache in test_import helper (#108698) X-Git-Tag: v3.13.0a1~687 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=157b89e55ed1ec12418a4853a0ba10eabc11ce60;p=thirdparty%2FPython%2Fcpython.git gh-108696: revert bypassing import cache in test_import helper (#108698) --- diff --git a/Lib/test/test_import/__init__.py b/Lib/test/test_import/__init__.py index 559198759c0d..051711bfd1fe 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',