Message207582
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. |
|
Date |
User |
Action |
Args |
2014-01-07 19:25:21 | gregory.p.smith | set | recipients:
+ gregory.p.smith |
2014-01-07 19:25:21 | gregory.p.smith | set | messageid: <1389122721.74.0.155844601606.issue20165@psf.upfronthosting.co.za> |
2014-01-07 19:25:21 | gregory.p.smith | link | issue20165 messages |
2014-01-07 19:25:21 | gregory.p.smith | create | |
|