summaryrefslogtreecommitdiffstats
path: root/Lib/unittest
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/unittest')
-rw-r--r--Lib/unittest/runner.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/unittest/runner.py b/Lib/unittest/runner.py
index f13d623f..cd9526d 100644
--- a/Lib/unittest/runner.py
+++ b/Lib/unittest/runner.py
@@ -168,9 +168,10 @@ class TextTestRunner(object):
results = map(len, (result.expectedFailures,
result.unexpectedSuccesses,
result.skipped))
- expectedFails, unexpectedSuccesses, skipped = results
except AttributeError:
pass
+ else:
+ expectedFails, unexpectedSuccesses, skipped = results
infos = []
if not result.wasSuccessful():