My favorites | Sign in
Project Home Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 41: SkipTest in tearDown is reported an as an error
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


Sign in to add a comment
 
Project Member Reported by MarkRo...@gmail.com, Nov 17, 2010
Taken from: http://bugs.python.org/issue9857

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.
Nov 17, 2010
Project Member #1 MarkRo...@gmail.com
Attaching patch to fix this issue for unittest2
unittest2.9857.patch
2.6 KB   View   Download
Nov 17, 2010
Project Member #2 MarkRo...@gmail.com
Attaching patch to fix this issue for unittest-py3k
unittest2py3k.9857.patch
2.6 KB   View   Download
Nov 23, 2010
Project Member #3 fuzzyman
Antoine is fine with a skip in an already failed test being ignored. I'll review the patch and apply.
Sign in to add a comment

Powered by Google Project Hosting