Skip to content

Commit 8cb4137

Browse files
committed
Try buffer option for XML test runner
1 parent 6624589 commit 8cb4137

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/runner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,8 @@ def run_tests(options, suites):
344344
output = open('out/test-results.xml', 'wb')
345345
import xmlrunner # type: ignore
346346
testRunner = xmlrunner.XMLTestRunner(output=output, verbosity=2,
347-
failfast=options.failfast)
347+
failfast=options.failfast,
348+
buffer=True)
348349
print('Writing XML test output to ' + os.path.abspath(output.name))
349350
else:
350351
testRunner = unittest.TextTestRunner(verbosity=2, failfast=options.failfast)

0 commit comments

Comments
 (0)