Commit b159b2e0 authored by Jim Fulton's avatar Jim Fulton

Because we use os._exit, to avoid spurious logging errors, we need to

explicitly flush output to make sure we see test results.
parent f69aebcb
...@@ -68,4 +68,9 @@ result = testrunner.run(defaults) ...@@ -68,4 +68,9 @@ result = testrunner.run(defaults)
# something after the files used by the logger have been closed. # something after the files used by the logger have been closed.
logging.disable(999999999) logging.disable(999999999)
import os import os
# Because we're about to use os._exit, we flush output so we don't miss any.
sys.stdout.flush()
sys.stderr.flush()
os._exit(result) os._exit(result)
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