[Zope-Checkins] CVS: Zope2 - testrunner.py:1.10

shane@digicool.com shane@digicool.com
Wed, 23 May 2001 14:06:25 -0400 (EDT)


Update of /cvs-repository/Zope2/utilities
In directory korak.digicool.com:/tmp/cvs-serv14129

Modified Files:
	testrunner.py 
Log Message:
Made testrunner print out a traceback when a test module can't be
imported rather than silently ignore the test.



--- Updated File testrunner.py in package Zope2 --
--- testrunner.py	2001/04/17 15:07:19	1.9
+++ testrunner.py	2001/05/23 18:06:24	1.10
@@ -20,7 +20,7 @@
 are made, and can be used to quickly run a particular suite or all suites in
 a particular directory."""
 
-import sys, os, imp, string, getopt
+import sys, os, imp, string, getopt, traceback
 
 pyunit=None
 
@@ -110,7 +110,9 @@
             os.chdir(dirname)
         self.report('Running: %s' % filename)
         try:    suite=self.getSuiteFromFile(filename)
-        except: suite=None
+        except:
+            traceback.print_exc()
+            suite=None
         if suite is None:
             self.report('No test suite found in file:\n%s' % filename)
             return