summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_complex.py2
1 files changed, 1 insertions, 1 deletions
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()