From c02571484b5d4b7f1efcc65b8a8b896ab8740dfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Walter=20D=C3=B6rwald?= Date: Tue, 29 May 2007 18:51:25 +0000 Subject: Fix file test. --- Lib/test/test_complex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_complex.py b/Lib/test/test_complex.py index af495fb..c0ec50d 100644 --- a/Lib/test/test_complex.py +++ b/Lib/test/test_complex.py @@ -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() -- cgit v0.12