cpython/Lib/test/test_importlib
Brett Cannon 12c6bda4f0 Issue #15316: Let exceptions raised during imports triggered by the
fromlist of __import__ propagate.

The problem previously was that if something listed in fromlist didn't
exist then that's okay. The fix for that was too broad in terms of
catching ImportError.

The trick with the solution to this issue is that the proper
refactoring of import thanks to importlib doesn't allow for a way to
distinguish (portably) between an ImportError because finders couldn't
find a loader, or a loader raised the exception. In Python 3.4 the
hope is to introduce a new exception (e.g. ModuleNotFound) to make it
clean to differentiate why ImportError was raised.
2012-08-24 18:25:59 -04:00
..
builtin
extension Issue #15576: Allow extension modules to be a package's __init__ 2012-08-10 13:47:54 -04:00
frozen
import_ Issue #15316: Let exceptions raised during imports triggered by the 2012-08-24 18:25:59 -04:00
source Close #14846: Handle a sys.path entry going away 2012-08-20 13:18:15 +10:00
__init__.py Remove a relative import that escaped test.test_importlib. 2012-07-21 09:54:58 -04:00
__main__.py
abc.py
regrtest.py
test_abc.py Issue #15502: Finish bringing importlib.abc in line with the current 2012-08-10 12:21:12 -04:00
test_api.py Issue #15502: Finish bringing importlib.abc in line with the current 2012-08-10 12:21:12 -04:00
test_locks.py
test_util.py
util.py