[Python-3000-checkins] r56047 - python/branches/py3k-struni/Lib/test/pickletester.py

walter.doerwald python-3000-checkins at python.org
Wed Jun 20 14:46:34 CEST 2007


Author: walter.doerwald
Date: Wed Jun 20 14:46:31 2007
New Revision: 56047

Modified:
   python/branches/py3k-struni/Lib/test/pickletester.py
Log:
Open files in binary mode.


Modified: python/branches/py3k-struni/Lib/test/pickletester.py
==============================================================================
--- python/branches/py3k-struni/Lib/test/pickletester.py	(original)
+++ python/branches/py3k-struni/Lib/test/pickletester.py	Wed Jun 20 14:46:31 2007
@@ -936,7 +936,7 @@
 
     def test_dump_closed_file(self):
         import os
-        f = open(TESTFN, "w")
+        f = open(TESTFN, "wb")
         try:
             f.close()
             self.assertRaises(ValueError, self.module.dump, 123, f)
@@ -945,7 +945,7 @@
 
     def test_load_closed_file(self):
         import os
-        f = open(TESTFN, "w")
+        f = open(TESTFN, "wb")
         try:
             f.close()
             self.assertRaises(ValueError, self.module.dump, 123, f)


More information about the Python-3000-checkins mailing list