[issue20687] Change in expectedFailure breaks testtools

Robert Collins report at bugs.python.org
Wed Feb 19 19:35:41 CET 2014


Robert Collins added the comment:

I concur that this is a regression - "     

unittest.expectedFailure()

    Mark the test as an expected failure. If the test fails when run, the test is not counted as a failure.
"

is in the public docs for the unittest module, and depending on a private attribute to be set is a bit of an abstraction violation - at the least it should handle it not being set (for any older test unittest compatible testcase object).

----------

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


More information about the Python-bugs-list mailing list