[issue15486] Standardised mechanism for stripping importlib frames from tracebacks

Chris Jerdonek report at bugs.python.org
Sun Jul 29 15:44:31 CEST 2012


Chris Jerdonek added the comment:

The test cases uploaded to issue 7559 ("TestLoader.loadTestsFromName swallows import errors") a while back contain a number of distinct cases (four, I think) in which an import error can be raised.  IIRC, these include a couple recursive scenarios (cyclical import from within __init__.py, etc).

Those test cases were designed specifically to cover different scenarios in which unittest's loader was swallowing import errors.  Might be worth taking a look.

----------
nosy: +cjerdonek

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


More information about the Python-bugs-list mailing list