cpython/Lib/importlib/test
Brett Cannon 881535b726 Issue #14582: Import returns the module returned by a loader instead
of sys.modules when possible.

This is being done for two reasons. One is to gain a little bit of
performance by skipping an unnecessary dict lookup in sys.modules. But
the other (and main) reason is to be a little bit more clear in how
things should work from the perspective of import's interactions with
loaders. Otherwise loaders can easily forget to return the module even
though PEP 302 explicitly states they are expected to return the module
they loaded.
2012-04-15 15:24:04 -04:00
..
builtin Have importlib take advantage of ImportError's new 'name' and 'path' 2012-04-12 21:09:01 -04:00
extension Have importlib take advantage of ImportError's new 'name' and 'path' 2012-04-12 21:09:01 -04:00
frozen Have importlib take advantage of ImportError's new 'name' and 'path' 2012-04-12 21:09:01 -04:00
import_ Issue #14582: Import returns the module returned by a loader instead 2012-04-15 15:24:04 -04:00
source Issue #2377: Make importlib the implementation of __import__(). 2012-04-14 14:10:13 -04:00
__init__.py
__main__.py Fix importlib.test.__main__ to only worry about command-line flags when directly executed. 2012-02-17 10:44:24 -05:00
abc.py
benchmark.py Make the benchmark recording more sensible for importlib.test.benchmark. 2012-02-23 19:34:35 -05:00
regrtest.py Issue #2377: Make importlib the implementation of __import__(). 2012-04-14 14:10:13 -04:00
test_abc.py
test_api.py Update importlib.invalidate_caches() to be more general. 2012-02-27 18:15:42 -05:00
test_util.py Issue #13593: updating the importlib utility decorators for __qualname__. 2011-12-14 22:53:13 -06:00
util.py Issue #2377: Make importlib the implementation of __import__(). 2012-04-14 14:10:13 -04:00