reduce try block compass
This commit is contained in:
parent
6331520950
commit
29bd840dee
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue