[issue7559] TestLoader.loadTestsFromName swallows import errors
Chris Jerdonek
report at bugs.python.org
Mon Apr 5 00:45:39 CEST 2010
Chris Jerdonek <chris.jerdonek at gmail.com> added the comment:
This patch implements Michael's suggestion (but not the ErrorHolder part):
http://bugs.python.org/issue7559#msg97462
The unit tests all pass with no change. If this approach looks good to you, I can add a unit test to the patch that checks that this bug has been fixed.
Also, Twisted Matrix's web site doesn't seem to be responding too well at the moment, but if I recall correctly, their code has a permissive (MIT?) license that should allow a small snippet like this to be copied without taking extra steps.
----------
Added file: http://bugs.python.org/file16759/_patch-7559-2.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7559>
_______________________________________
More information about the Python-bugs-list
mailing list