monkey-see-monkey-do: Also restore stdout/stderr when success

Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
Daniel Silverstone 2019-06-04 21:50:43 +01:00
parent c07b2edd77
commit 41608a73c0

View File

@ -37,6 +37,9 @@ def child_run_test(parts):
print("STDERR:\n{}\n", errcapture.getvalue())
print("RERAISE:")
raise
else:
sys.stdout = oldout
sys.stderr = olderr
def run_test(parts):
p = mp.Process(target=child_run_test, args=(parts, ))