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:
Fred Drake 2000-12-15 21:31:59 +00:00
parent 279aa6cabc
commit 1703cf662c
1 changed files with 1 additions and 0 deletions

View File

@ -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 = {}