[issue19746] No introspective way to detect ModuleImportFailure in unittest

R. David Murray report at bugs.python.org
Tue Sep 23 16:55:41 CEST 2014


R. David Murray added the comment:

Oh, ok, if the existing glue does it that way, then it seems fine.  I thought when I read the code that it was holding a reference to the traceback until it raised the error in the synthetic test.  Or do you mean that when exceptions are raised by tests it is the string that is captured not the exception?  That would make sense.  So, yeah, I guess capturing the string makes sense, to be consistent with the rest of the reporting.

----------

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


More information about the Python-bugs-list mailing list