Commit 3ad327ec authored by Brett Cannon's avatar Brett Cannon

Issue #16803: Run test.test_importlib.test_abc under both

_frozen_importlib and source.
parent 1448ecf4
This diff is collapsed.
......@@ -6,6 +6,15 @@ import sys
import types
def import_importlib(module_name):
"""Import a module from importlib both w/ and w/o _frozen_importlib."""
fresh = ('importlib',) if '.' in module_name else ()
frozen = support.import_fresh_module(module_name)
source = support.import_fresh_module(module_name, fresh=fresh,
blocked=('_frozen_importlib',))
return frozen, source
CASE_INSENSITIVE_FS = True
# Windows is the only OS that is *always* case-insensitive
# (OS X *can* be case-sensitive).
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment