[Zope3-checkins] CVS: Zope3 - test.py:1.73
Jim Fulton
jim at zope.com
Sun Sep 21 13:29:55 EDT 2003
Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv11490
Modified Files:
test.py
Log Message:
When -D is used to enter the post-mortem debugger on a failed test,
print the error type and value.
=== Zope3/test.py 1.72 => 1.73 ===
--- Zope3/test.py:1.72 Thu Sep 18 14:59:25 2003
+++ Zope3/test.py Sun Sep 21 13:29:54 2003
@@ -483,6 +483,7 @@
except ImportError, err:
# print traceback
print "Error importing %s\n%s" % (modname, err)
+ traceback.print_exc()
if debug:
raise
return None
@@ -581,6 +582,8 @@
r.print_times(sys.stdout, timetests)
except:
if debugger:
+ print "%s:" % (sys.exc_info()[0], )
+ print sys.exc_info()[1]
pdb.post_mortem(sys.exc_info()[2])
else:
raise
More information about the Zope3-Checkins
mailing list