New submission from R. David Murray <rdmur...@bitdance.com>:

I think that it would be good for expectedFailure to take a message argument 
like skip does.  My thought is that it would be printed both when it is 
triggered (the test fails as expected) so that one case from the verbose output 
why the test is expected to fail, and when the test passes unexpectedly.  My 
specific use case is OS bugs, where we could mark a test as an expected failure 
instead of a skip, and then we would see the unexpected pass when the OS fixes 
the bug, but in the meantime the verbose output would show the 'skip' reason.

Hmm.  I suppose this means I want expectedFailureIf, too...

----------
components: Library (Lib)
keywords: easy
messages: 141560
nosy: michael.foord, r.david.murray
priority: low
severity: normal
status: open
title: unittest expectedFailure could take a message argument like skip does
type: feature request
versions: Python 3.3

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12681>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to