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

print on stdout durint live test

parent ac8932aa
......@@ -219,7 +219,13 @@ def runLiveTest(test_list, verbosity=1, stream=None, **kw):
suite = loader.loadTestsFromNames(test_list)
output = stream
if stream is None:
output = StringIO()
class StdoutStringIO(StringIO):
# a string IO that also writes on stdout.
def write(self, s):
sys.stdout.write(s)
StringIO.write(self, f)
output = StdoutStringIO()
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