summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_minidom.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-12-15 21:31:59 (GMT)
committerFred Drake <fdrake@acm.org>2000-12-15 21:31:59 (GMT)
commit1703cf662cb3c5c7c58f20f89899c8c00240ac18 (patch)
treebb2e5446f8fa8a14e5b8586cc6ec919fff2c5aa7 /Lib/test/test_minidom.py
parent279aa6cabcd728b093c05016b0a8908cbe5e784c (diff)
downloadcpython-1703cf662cb3c5c7c58f20f89899c8c00240ac18.zip
cpython-1703cf662cb3c5c7c58f20f89899c8c00240ac18.tar.gz
cpython-1703cf662cb3c5c7c58f20f89899c8c00240ac18.tar.bz2
Before calling traceback.print_exc(), call sys.stdout.flush(). This makes
it much easier to see where things went wrong.
Diffstat (limited to 'Lib/test/test_minidom.py')
-rw-r--r--Lib/test/test_minidom.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_minidom.py b/Lib/test/test_minidom.py
index 551e9f9..dbdd25e 100644
--- a/Lib/test/test_minidom.py
+++ b/Lib/test/test_minidom.py
@@ -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 = {}