[Python-3000-checkins] r55559 - python/branches/py3k-struni/Lib/test/list_tests.py

walter.doerwald python-3000-checkins at python.org
Thu May 24 20:05:31 CEST 2007


Author: walter.doerwald
Date: Thu May 24 20:05:27 2007
New Revision: 55559

Modified:
   python/branches/py3k-struni/Lib/test/list_tests.py
Log:
Don't specify an encoding, let open figure out an
appropriate one.


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 20:05:27 2007
@@ -53,10 +53,10 @@
         d.append(d)
         d.append(400)
         try:
-            fo = open(test_support.TESTFN, "w", encoding="ascii")
+            fo = open(test_support.TESTFN, "w")
             fo.write(str(d))
             fo.close()
-            fo = open(test_support.TESTFN, "r", encoding="ascii")
+            fo = open(test_support.TESTFN, "r")
             self.assertEqual(fo.read(), repr(d))
         finally:
             fo.close()


More information about the Python-3000-checkins mailing list