[issue7559] TestLoader.loadTestsFromName swallows import errors
Michael Foord
report at bugs.python.org
Wed Mar 27 13:58:05 CET 2013
Michael Foord added the comment:
My preferred fix is to wrap "an exception during import" as a test that fails instead of an AttributeError. This would definitely be a new feature rather than a bugfix - so it could only be in 3.4.
It could be made available to Python 2.7 through the unittest2 backport.
None of the current patches implement my preferred solution yet.
----------
versions: +Python 3.4 -Python 2.7, Python 3.2, Python 3.3
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7559>
_______________________________________
More information about the Python-bugs-list
mailing list