Commit 2e85b650 authored by Shane Hathaway's avatar Shane Hathaway

Made testrunner print out a traceback when a test module can't be

imported rather than silently ignore the test.
parent 9d24e8f0
......@@ -20,7 +20,7 @@ Testrunner is used to run all checked in test suites before (final) releases
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 @@ class TestRunner:
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment