[issue10612] StopTestRun exception to halt test run

Pam McA'Nulty report at bugs.python.org
Mon Apr 13 18:07:01 CEST 2015


Pam McA'Nulty added the comment:

Added unittest.StopTestRun exception.  It's caught and handled in testPartExecutor() - which is the same place SkipTest is caught.

If report=False, then it sets the result.haltTestRun attribute, which is a signal to TestTextRunner to not generate any output.

Added notes to whatsnew and unittest docs

----------
keywords: +patch
Added file: http://bugs.python.org/file38925/cpython-10612-StopTestRun.patch

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


More information about the Python-bugs-list mailing list