Commit f6caaf1b authored by Sebastien Robin's avatar Sebastien Robin

display informations in browser when there is an ImportError

parent 8f4c7667
...@@ -1239,12 +1239,15 @@ def initialize( context ): ...@@ -1239,12 +1239,15 @@ def initialize( context ):
global global_stream global global_stream
global_stream = StringIO() global_stream = StringIO()
from Products.ERP5Type.tests.ERP5TypeLiveTestCase import runLiveTest from Products.ERP5Type.tests.ERP5TypeLiveTestCase import runLiveTest
result = runLiveTest(test_list, try:
run_only=run_only, result = runLiveTest(test_list,
debug=debug, run_only=run_only,
path=path, debug=debug,
stream=global_stream, path=path,
verbosity=verbosity) stream=global_stream,
verbosity=verbosity)
except ImportError:
traceback.print_exc(file=global_stream)
global_stream.seek(0) global_stream.seek(0)
return global_stream.read() return global_stream.read()
......
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