summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/runner.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-11-18 14:14:43 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-11-18 14:14:43 (GMT)
commit29bd840dee45c7690bf2d4384fbf00e513f89b38 (patch)
tree8ead0faa25ec11cd98e33367480f6e8d63b7ba5e /Lib/unittest/runner.py
parent63315209506dafe15cb3e894f33793cbacadca20 (diff)
downloadcpython-29bd840dee45c7690bf2d4384fbf00e513f89b38.zip
cpython-29bd840dee45c7690bf2d4384fbf00e513f89b38.tar.gz
cpython-29bd840dee45c7690bf2d4384fbf00e513f89b38.tar.bz2
reduce try block compass
Diffstat (limited to 'Lib/unittest/runner.py')
-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():