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,
|
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():
|
||||||
|
|
Loading…
Reference in New Issue