Commit c675f2f1 authored by Vincent Pelletier's avatar Vincent Pelletier

Display import error for easier debugging.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2448 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 417a8475
...@@ -129,6 +129,7 @@ class NeoTestRunner(unittest.TestResult): ...@@ -129,6 +129,7 @@ class NeoTestRunner(unittest.TestResult):
except ImportError, err: except ImportError, err:
self.failedImports[test_module] = err self.failedImports[test_module] = err
print "Import of %s failed : %s" % (test_module, err) print "Import of %s failed : %s" % (test_module, err)
traceback.print_exc()
continue continue
suite.addTests(loader.loadTestsFromModule(test_module)) suite.addTests(loader.loadTestsFromModule(test_module))
suite.run(self) suite.run(self)
......
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