mirror of https://github.com/python/cpython
gh-108696: revert bypassing import cache in test_import helper (#108698)
This commit is contained in:
parent
d52c4482a8
commit
157b89e55e
|
@ -25,7 +25,6 @@ from unittest import mock
|
||||||
import _testinternalcapi
|
import _testinternalcapi
|
||||||
import _imp
|
import _imp
|
||||||
|
|
||||||
from test.support import import_helper
|
|
||||||
from test.support import os_helper
|
from test.support import os_helper
|
||||||
from test.support import (
|
from test.support import (
|
||||||
STDLIB_DIR, swap_attr, swap_item, cpython_only, is_emscripten,
|
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):
|
def _require_loader(module, loader, skip):
|
||||||
if isinstance(module, str):
|
if isinstance(module, str):
|
||||||
module = import_helper.import_fresh_module(module)
|
module = __import__(module)
|
||||||
|
|
||||||
MODULE_KINDS = {
|
MODULE_KINDS = {
|
||||||
BuiltinImporter: 'built-in',
|
BuiltinImporter: 'built-in',
|
||||||
|
|
Loading…
Reference in New Issue