cpython/Lib/importlib/test/import_
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
..
__init__.py Add initial implementation of importlib. See the NOTES files for what is 2009-01-18 00:24:28 +00:00
test___package__.py Improper type for __package__ should raise TypeError, not ValueError. 2012-02-23 18:29:12 -05:00
test_api.py importlib.__import__() now raises ValueError when level < 0. 2012-02-16 17:47:48 -05:00
test_caching.py Issue #14582: Import returns the module returned by a loader instead 2012-04-15 15:24:04 -04:00
test_fromlist.py #9424: Replace deprecated assert* methods in the Python test suite. 2010-11-20 19:04:17 +00:00
test_meta_path.py #9424: Replace deprecated assert* methods in the Python test suite. 2010-11-20 19:04:17 +00:00
test_packages.py Have importlib take advantage of ImportError's new 'name' and 'path' 2012-04-12 21:09:01 -04:00
test_path.py Issue #2377: Make importlib the implementation of __import__(). 2012-04-14 14:10:13 -04:00
test_relative_imports.py Handle importing pkg.mod by executing 2012-04-14 21:50:00 -04:00
util.py Issue #2377: Make importlib the implementation of __import__(). 2012-04-14 14:10:13 -04:00