]> granicus.if.org Git - python/commitdiff
Before calling traceback.print_exc(), call sys.stdout.flush(). This makes
authorFred Drake <fdrake@acm.org>
Fri, 15 Dec 2000 21:31:59 +0000 (21:31 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 15 Dec 2000 21:31:59 +0000 (21:31 +0000)
it much easier to see where things went wrong.

Lib/test/test_minidom.py

index 551e9f9aa9b4d2ead9f1dbaf091fb4b770a47d86..dbdd25e1d27626c6f1a27b2f92937c1c918e76f8 100644 (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 = {}