mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Before calling traceback.print_exc(), call sys.stdout.flush(). This makes
it much easier to see where things went wrong.
This commit is contained in:
parent
279aa6cabc
commit
1703cf662c
1 changed files with 1 additions and 0 deletions
|
@ -497,6 +497,7 @@ for name in names:
|
|||
except Exception, e:
|
||||
works = 0
|
||||
print "Test Failed: ", name
|
||||
sys.stdout.flush()
|
||||
traceback.print_exception(*sys.exc_info())
|
||||
print `e`
|
||||
Node.allnodes = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue