From 29bd840dee45c7690bf2d4384fbf00e513f89b38 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 18 Nov 2010 14:14:43 +0000 Subject: [PATCH] reduce try block compass --- Lib/unittest/runner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/unittest/runner.py b/Lib/unittest/runner.py index f13d623f764..cd9526d330e 100644 --- a/Lib/unittest/runner.py +++ b/Lib/unittest/runner.py @@ -168,9 +168,10 @@ def run(self, test): 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():