Author gregory.p.smith
Recipients gregory.p.smith
Date 2014-01-07.19:25:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1389122721.74.0.155844601606.issue20165@psf.upfronthosting.co.za>
In-reply-to
Content
Python 3.3.3+ (3.3:28337a8fb502+, Jan  7 2014, 01:32:44)
[GCC 4.6.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import unittest
>>> r = unittest.result.TestResult()
>>> r.wasSuccessful()
True
>>> r.addUnexpectedSuccess("weird!")
>>> r.wasSuccessful()
True

An unexpected success is not a good thing and indicates a problem.

the wasSuccessful() method should include a check for len(self.unexpectedSuccesses) == 0 as part of its condition.
History
Date User Action Args
2014-01-07 19:25:21gregory.p.smithsetrecipients: + gregory.p.smith
2014-01-07 19:25:21gregory.p.smithsetmessageid: <1389122721.74.0.155844601606.issue20165@psf.upfronthosting.co.za>
2014-01-07 19:25:21gregory.p.smithlinkissue20165 messages
2014-01-07 19:25:21gregory.p.smithcreate