Author: walter.doerwald
Date: Thu May 24 19:44:33 2007
New Revision: 55552

Modified:
   python/branches/py3k-struni/Lib/test/list_tests.py
Log:
Fix list_test.py::test_print(): Read and write the
file in text mode, so the file content comes back
as str not bytes.


Modified: python/branches/py3k-struni/Lib/test/list_tests.py
==============================================================================
--- python/branches/py3k-struni/Lib/test/list_tests.py  (original)
+++ python/branches/py3k-struni/Lib/test/list_tests.py  Thu May 24 19:44:33 2007
@@ -53,10 +53,10 @@
         d.append(d)
         d.append(400)
         try:
-            fo = open(test_support.TESTFN, "wb")
+            fo = open(test_support.TESTFN, "w", encoding="ascii")
             fo.write(str(d))
             fo.close()
-            fo = open(test_support.TESTFN, "rb")
+            fo = open(test_support.TESTFN, "r", encoding="ascii")
             self.assertEqual(fo.read(), repr(d))
         finally:
             fo.close()
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to