cpython/Lib/test/test_importlib/import_
Ngalim Siregar c5fa44944e bpo-37444: Update differing exception between builtins and importlib (GH-14869)
Imports now raise `TypeError` instead of `ValueError` for relative import failures. This makes things consistent between `builtins.__import__` and `importlib.__import__` as well as using a more natural import for the failure.


https://bugs.python.org/issue37444



Automerge-Triggered-By: @brettcannon
2019-08-02 22:46:02 -07:00
..
__init__.py
__main__.py
test___loader__.py
test___package__.py
test_api.py bpo-31642: Restore blocking "from" import by setting None in sys.modules. (#3834) 2017-10-08 10:44:10 +03:00
test_caching.py
test_fromlist.py bpo-21720: Restore the Python 2.7 logic in handling a fromlist. (#4118) 2017-10-26 10:41:59 +03:00
test_meta_path.py
test_packages.py
test_path.py bpo-33169: Remove values of `None` from sys.path_importer_cache when invalidating caches (GH-6402) 2018-04-06 16:10:18 -07:00
test_relative_imports.py bpo-37444: Update differing exception between builtins and importlib (GH-14869) 2019-08-02 22:46:02 -07:00