reduce try block compass

This commit is contained in:
Benjamin Peterson 2010-11-18 14:14:43 +00:00
parent 6331520950
commit 29bd840dee
1 changed files with 2 additions and 1 deletions

View File

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