aboutsummaryrefslogtreecommitdiff
path: root/third_party/Python/module/unittest2/unittest2/result.py
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/Python/module/unittest2/unittest2/result.py')
-rw-r--r--third_party/Python/module/unittest2/unittest2/result.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/third_party/Python/module/unittest2/unittest2/result.py b/third_party/Python/module/unittest2/unittest2/result.py
index 9d76429fb4ad..8f89816b772f 100644
--- a/third_party/Python/module/unittest2/unittest2/result.py
+++ b/third_party/Python/module/unittest2/unittest2/result.py
@@ -148,7 +148,9 @@ class TestResult(unittest.TestResult):
def wasSuccessful(self):
"Tells whether or not this result was a success"
- return (len(self.failures) + len(self.errors) == 0)
+ return (len(self.failures) +
+ len(self.errors) +
+ len(self.unexpectedSuccesses) == 0)
def stop(self):
"Indicates that the tests should be aborted"