[Zope-Checkins] CVS: Releases/Zope/utilities - testrunner.py:1.10.16.1
Andreas Jung
andreas@digicool.com
Mon, 30 Jul 2001 09:27:40 -0400
Update of /cvs-repository/Releases/Zope/utilities
In directory cvs.zope.org:/tmp/cvs-serv30347/utilities
Modified Files:
Tag: zope2-testunitfix
testrunner.py
Log Message:
Collector #2453: getSuiteFromFile() got called with full filename
instead with the basename of file (-f option)
=== Releases/Zope/utilities/testrunner.py 1.10 => 1.10.16.1 ===
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