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():