testtools-dev team mailing list archive
-
testtools-dev team
-
Mailing list archive
-
Message #00100
[Bug 654474] [NEW] An unexpectedSuccess is like a failure not a success
Public bug reported:
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>
** Affects: bzr
Importance: Medium
Status: Confirmed
** Affects: subunit
Importance: Undecided
Status: New
** Affects: testtools
Importance: Undecided
Status: New
** Tags: regression selftest testtools
** Changed in: bzr
Importance: Undecided => Medium
** Changed in: bzr
Status: New => Confirmed
** Also affects: testtools
Importance: Undecided
Status: New
** Also affects: subunit
Importance: Undecided
Status: New
--
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: New
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>
Follow ups
-
[Bug 654474] Re: An unexpectedSuccess is like a failure not a success
From: Martin [gz], 2011-05-18
-
[Bug 654474] Re: An unexpectedSuccess is like a failure not a success
From: Martin [gz], 2011-05-16
-
[Bug 654474] Re: An unexpectedSuccess is like a failure not a success
From: Launchpad Bug Tracker, 2011-05-16
-
[Bug 654474] Re: An unexpectedSuccess is like a failure not a success
From: Martin [gz], 2011-05-05
-
[Bug 654474] Re: An unexpectedSuccess is like a failure not a success
From: Robert Collins, 2011-05-01
-
[Bug 654474] Re: An unexpectedSuccess is like a failure not a success
From: Robert Collins, 2011-05-01
-
[Bug 654474] Re: An unexpectedSuccess is like a failure not a success
From: Robert Collins, 2011-05-01
-
[Bug 654474] Re: An unexpectedSuccess is like a failure not a success
From: Robert Collins, 2011-05-01
-
[Bug 654474] Re: An unexpectedSuccess is like a failure not a success
From: Martin [gz], 2011-04-25
-
[Bug 654474] Re: An unexpectedSuccess is like a failure not a success
From: Jonathan Lange, 2011-02-13
-
[Bug 654474] Re: An unexpectedSuccess is like a failure not a success
From: Robert Collins, 2010-12-18
-
[Bug 654474] Re: An unexpectedSuccess is like a failure not a success
From: Robert Collins, 2010-12-10
-
[Bug 654474] Re: An unexpectedSuccess is like a failure not a success
From: Jonathan Lange, 2010-11-29
-
[Bug 654474] Re: An unexpectedSuccess is like a failure not a success
From: Jonathan Lange, 2010-11-28
-
[Bug 654474] Re: An unexpectedSuccess is like a failure not a success
From: Robert Collins, 2010-11-21
-
[Bug 654474] Re: An unexpectedSuccess is like a failure not a success
From: Jonathan Lange, 2010-11-21
-
[Bug 654474] Re: An unexpectedSuccess is like a failure not a success
From: Martin [gz], 2010-11-14
-
[Bug 654474] Re: An unexpectedSuccess is like a failure not a success
From: Jonathan Lange, 2010-10-25
-
[Bug 654474] Re: An unexpectedSuccess is like a failure not a success
From: Jonathan Lange, 2010-10-24
-
[Bug 654474] Re: An unexpectedSuccess is like a failure not a success
From: Jonathan Lange, 2010-10-18
-
[Bug 654474] Re: An unexpectedSuccess is like a failure not a success
From: Martin [gz], 2010-10-04
-
[Bug 654474] [NEW] An unexpectedSuccess is like a failure not a success
From: Martin [gz], 2010-10-04
References