]> granicus.if.org Git - python/commitdiff
Fix file test.
authorWalter Dörwald <walter@livinglogic.de>
Tue, 29 May 2007 18:51:25 +0000 (18:51 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Tue, 29 May 2007 18:51:25 +0000 (18:51 +0000)
Lib/test/test_complex.py

index af495fb00087110a5c8a2a1d18400c2c454d597d..c0ec50da33dc5c014b018adbe51a4cbd79fadf12 100644 (file)
@@ -327,7 +327,7 @@ class ComplexTest(unittest.TestCase):
             print(a, b, file=fo)
             fo.close()
             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:
             if (fo is not None) and (not fo.closed):
                 fo.close()