Skip to content

Commit

Permalink
GH-103247: bypass the import cache on the _require_loader helper
Browse files Browse the repository at this point in the history
  • Loading branch information
FFY00 authored Aug 24, 2023
1 parent edb569e commit feb9a49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Lib/test/test_import/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
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,
Expand Down Expand Up @@ -58,7 +59,7 @@

def _require_loader(module, loader, skip):
if isinstance(module, str):
module = __import__(module)
module = import_helper.import_fresh_module(module)

MODULE_KINDS = {
BuiltinImporter: 'built-in',
Expand Down

0 comments on commit feb9a49

Please sign in to comment.