[New-bugs-announce] [issue9857] SkipTest in tearDown is reported an as an error

Antoine Pitrou report at bugs.python.org
Tue Sep 14 23:45:19 CEST 2010


New submission from Antoine Pitrou <pitrou at free.fr>:

Raising SkipTest when in a tearDown method is reported as an error, rather than a skipped test.
Now doing this sounds like a weird use case, but it would be actually useful when you have a worker thread, and the tearDown method collects the exception raised in that thread and raises it again. For the worker thread to be able to use skipTest(), a SkipTest exception raised in tearDown should be properly reported as a skip.

----------
assignee: michael.foord
components: Library (Lib)
messages: 116422
nosy: michael.foord, pitrou
priority: normal
severity: normal
status: open
title: SkipTest in tearDown is reported an as an error
type: behavior
versions: Python 3.2

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


More information about the New-bugs-announce mailing list