mirror of
https://github.com/python/cpython.git
synced 2024-12-01 05:45:40 +08:00
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
Block a user