Kaydet (Commit) c0257148 authored tarafından Walter Dörwald's avatar Walter Dörwald

Fix file test.

üst 29478ef9
...@@ -327,7 +327,7 @@ class ComplexTest(unittest.TestCase): ...@@ -327,7 +327,7 @@ class ComplexTest(unittest.TestCase):
print(a, b, file=fo) print(a, b, file=fo)
fo.close() fo.close()
fo = open(test_support.TESTFN, "rb") fo = open(test_support.TESTFN, "rb")
self.assertEqual(fo.read(), "%s %s\n" % (a, b)) self.assertEqual(fo.read(), bytes("%s %s\n" % (a, b)))
finally: finally:
if (fo is not None) and (not fo.closed): if (fo is not None) and (not fo.closed):
fo.close() fo.close()
......
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