Py3 fix
authorStefan Behnel <scoder@users.berlios.de>
Sat, 13 Mar 2010 10:02:11 +0000 (11:02 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sat, 13 Mar 2010 10:02:11 +0000 (11:02 +0100)
Cython/Tests/xmlrunner.py

index cd9e37f70384075ffb35759984cdd02cf03363aa..b7cdaf55785353f79b366820dc21a6ff903a34d2 100644 (file)
@@ -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)