Commit 0f5d3a6a authored by Stefan Behnel's avatar Stefan Behnel

Py3 fix

parent f0d37d22
...@@ -268,7 +268,7 @@ class _XMLTestResult(_TextTestResult): ...@@ -268,7 +268,7 @@ class _XMLTestResult(_TextTestResult):
xml_content = doc.toprettyxml(indent='\t') xml_content = doc.toprettyxml(indent='\t')
if type(test_runner.output) is str: if type(test_runner.output) is str:
report_file = file('%s%sTEST-%s.xml' % \ report_file = open('%s%sTEST-%s.xml' % \
(test_runner.output, os.sep, suite), 'w') (test_runner.output, os.sep, suite), 'w')
try: try:
report_file.write(xml_content) report_file.write(xml_content)
......
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