]> granicus.if.org Git - python/commitdiff
Don't specify an encoding, let open figure out an
authorWalter Dörwald <walter@livinglogic.de>
Thu, 24 May 2007 18:05:27 +0000 (18:05 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Thu, 24 May 2007 18:05:27 +0000 (18:05 +0000)
appropriate one.

Lib/test/list_tests.py

index 5162f2ebaf8f73054f388018ab908dd8f9616963..468a1bc418537945c0588130666239f42d601213 100644 (file)
@@ -53,10 +53,10 @@ class CommonTest(seq_tests.CommonTest):
         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()