From: Stefan Behnel Date: Sat, 13 Mar 2010 10:02:11 +0000 (+0100) Subject: Py3 fix X-Git-Tag: 0.13.beta0~310 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0f5d3a6a930c24e5ee01016cd66678657583c53a;p=cython.git Py3 fix --- diff --git a/Cython/Tests/xmlrunner.py b/Cython/Tests/xmlrunner.py index cd9e37f7..b7cdaf55 100644 --- a/Cython/Tests/xmlrunner.py +++ b/Cython/Tests/xmlrunner.py @@ -268,7 +268,7 @@ class _XMLTestResult(_TextTestResult): xml_content = doc.toprettyxml(indent='\t') 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') try: report_file.write(xml_content)