summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_complex.py
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2007-05-29 18:51:25 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2007-05-29 18:51:25 (GMT)
commitc02571484b5d4b7f1efcc65b8a8b896ab8740dfd (patch)
treef425b5af31ec392e57dda2739c29bf4c2f36283c /Lib/test/test_complex.py
parent29478ef990eadb04c9c1ff4a803b7c5172b31399 (diff)
downloadcpython-c02571484b5d4b7f1efcc65b8a8b896ab8740dfd.zip
cpython-c02571484b5d4b7f1efcc65b8a8b896ab8740dfd.tar.gz
cpython-c02571484b5d4b7f1efcc65b8a8b896ab8740dfd.tar.bz2
Fix file test.
Diffstat (limited to 'Lib/test/test_complex.py')
-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()