mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-27 14:29:42 +03:00
monkey-see-monkey-do: Also restore stdout/stderr when success
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
This commit is contained in:
parent
c07b2edd77
commit
41608a73c0
@ -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, ))
|
||||
|
Loading…
Reference in New Issue
Block a user