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, results = map(len, (result.expectedFailures,
result.unexpectedSuccesses, result.unexpectedSuccesses,
result.skipped)) result.skipped))
expectedFails, unexpectedSuccesses, skipped = results
except AttributeError: except AttributeError:
pass pass
else:
expectedFails, unexpectedSuccesses, skipped = results
infos = [] infos = []
if not result.wasSuccessful(): if not result.wasSuccessful():