From 0f5d3a6a930c24e5ee01016cd66678657583c53a Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 13 Mar 2010 11:02:11 +0100 Subject: [PATCH] Py3 fix --- Cython/Tests/xmlrunner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.26.2