testtools-dev team mailing list archive
-
testtools-dev team
-
Mailing list archive
-
Message #00296
Re: [Bug 654474] Re: An unexpectedSuccess is like a failure not a success
Whatever happens, it ought to be documented and at the moment it
apparently is not.
Consistency with python unittest is worth something.
I see at the moment it is raised by expectFailure when the assertion
fails. I think it is a bad idea to have test expressions that can
silently or nearly silently change from passing to failing.
--
Martin
--
An unexpectedSuccess is like a failure not a success
https://bugs.launchpad.net/bugs/654474
You received this bug notification because you are a member of testtools
developers, which is subscribed to testtools.
Status in Bazaar Version Control System: Confirmed
Status in SubUnit: New
Status in testtools: In Progress
Bug description:
When the function passed to expectedFailure did not raise an assertion, bzr used to do:
self.fail('Unexpected success. Should have failed: %s' % reason)
With testtools, bazaar now treats that as a success, as jam noted in February:
<https://lists.ubuntu.com/archives/bazaar/2010q1/066898.html>
And in September he pointed out the same thing, but with subunit:
<https://lists.ubuntu.com/archives/bazaar/2010q3/070192.html>
References