[issue10611] sys.exit() in a test causes a test run to die

Michael Foord report at bugs.python.org
Fri Dec 10 11:43:11 CET 2010


Michael Foord <michael at voidspace.org.uk> added the comment:

At the moment exception handling for setUp / tearDown / testMethod and cleanUp functions are all handled separately. They all have to call addError and as a result we have inconsistent handling of skips, expected failures (etc). There are separate issues for handling expected failures in setUp and skips in tearDown.

I'd like to fix all these issues by moving the exception handling into a single method and unifying the reporting of failure / error / expected failure / skip test. This will fix all these issues and nicely simplify the implementation.

----------

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


More information about the Python-bugs-list mailing list