[issue15316] runpy swallows ImportError information with relative imports

Brett Cannon report at bugs.python.org
Wed Aug 22 21:12:40 CEST 2012


Brett Cannon added the comment:

Thanks for the test, Chris. It can probably be simplified using the utilities in test_importlib (e.g. managing the cleanup of sys.path, using mocked loaders to raise the exception instead of having to write to the file system, etc.), but otherwise the idea of the test is accurate.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15316>
_______________________________________


More information about the Python-bugs-list mailing list