Commit a4253489 authored by Jérome Perrin's avatar Jérome Perrin

LiveTest: also print test output in the console

parent 640f24dd
......@@ -221,6 +221,10 @@ def runLiveTest(test_list, verbosity=1, stream=None, **kw):
output = stream
if stream is None:
output = StringIO()
def print_and_write(data):
sys.stdout.write(data)
return StringIO.write(output, data)
output.write = print_and_write
output.write("**Running Live Test:\n")
ZopeTestCase._print = output.write
......
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