[issue12681] unittest expectedFailure could take a message argument like skip does

Michael Foord report at bugs.python.org
Wed Aug 3 02:20:30 CEST 2011


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

Well, expectedFailure could dispatch on the type of the argument, with different behaviour for strings and anything else (presumed to be a function / method). That would be inconsistent with the api for skipping though. (I'm not wild on the message argument to the skip decorators - I keep forgetting it.)

----------

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


More information about the Python-bugs-list mailing list