🐛 Allow Unit Test XML to write binary

Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
This commit is contained in:
mathieu.brunot 2019-11-26 03:21:23 +01:00
parent 5d12770de8
commit cf50b52df7
No known key found for this signature in database
GPG key ID: 81584BEAF692D7E0

View file

@ -38,7 +38,7 @@ def main(app=None, module=None, doctype=None, verbose=False, tests=(),
xmloutput_fh = None
if junit_xml_output:
xmloutput_fh = open(junit_xml_output, 'w')
xmloutput_fh = open(junit_xml_output, 'wb')
unittest_runner = xmlrunner_wrapper(xmloutput_fh)
else:
unittest_runner = unittest.TextTestRunner