[Python-3000-checkins] r55648 - python/branches/py3k-struni/Lib/test/test_complex.py

walter.doerwald python-3000-checkins at python.org
Tue May 29 20:51:30 CEST 2007


Author: walter.doerwald
Date: Tue May 29 20:51:25 2007
New Revision: 55648

Modified:
   python/branches/py3k-struni/Lib/test/test_complex.py
Log:
Fix file test.


Modified: python/branches/py3k-struni/Lib/test/test_complex.py
==============================================================================
--- python/branches/py3k-struni/Lib/test/test_complex.py	(original)
+++ python/branches/py3k-struni/Lib/test/test_complex.py	Tue May 29 20:51:25 2007
@@ -327,7 +327,7 @@
             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()


More information about the Python-3000-checkins mailing list