diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-11-18 14:14:43 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-11-18 14:14:43 +0000 |
commit | 29bd840dee45c7690bf2d4384fbf00e513f89b38 (patch) | |
tree | 8ead0faa25ec11cd98e33367480f6e8d63b7ba5e | |
parent | 63315209506dafe15cb3e894f33793cbacadca20 (diff) | |
download | cpython-git-29bd840dee45c7690bf2d4384fbf00e513f89b38.tar.gz |
reduce try block compass
-rw-r--r-- | Lib/unittest/runner.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/unittest/runner.py b/Lib/unittest/runner.py index f13d623f76..cd9526d330 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(): |