summaryrefslogtreecommitdiff
path: root/Lib/test/test_minidom.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-12-15 21:31:59 +0000
committerFred Drake <fdrake@acm.org>2000-12-15 21:31:59 +0000
commit71d96c771d1694d938857064eaa49f923718eae9 (patch)
tree161fee494ed24ec0e74d9bb0f45ae9c896b08c8b /Lib/test/test_minidom.py
parenta35b04d5f4850f8e77f8ab1b6dacf3271715d7c2 (diff)
downloadcpython-71d96c771d1694d938857064eaa49f923718eae9.tar.gz
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 551e9f9aa9..dbdd25e1d2 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 = {}