gh-108696: revert bypassing import cache in test_import helper (#108698)

This commit is contained in:
Carl Meyer 2023-08-30 18:15:31 -06:00 committed by GitHub
parent d52c4482a8
commit 157b89e55e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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',