[Python-checkins] r72436 - in python/branches/release26-maint: Lib/test/test_aifc.py

r.david.murray python-checkins at python.org
Thu May 7 20:25:20 CEST 2009


Author: r.david.murray
Date: Thu May  7 20:25:20 2009
New Revision: 72436

Log:
Merged revisions 72434 via svnmerge from 
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r72434 | r.david.murray | 2009-05-07 14:09:58 -0400 (Thu, 07 May 2009) | 2 lines
  
  Pre-opened test file needs to be opened in binary mode.
........


Modified:
   python/branches/release26-maint/   (props changed)
   python/branches/release26-maint/Lib/test/test_aifc.py

Modified: python/branches/release26-maint/Lib/test/test_aifc.py
==============================================================================
--- python/branches/release26-maint/Lib/test/test_aifc.py	(original)
+++ python/branches/release26-maint/Lib/test/test_aifc.py	Thu May  7 20:25:20 2009
@@ -48,7 +48,7 @@
     def test_close(self):
         class Wrapfile(object):
             def __init__(self, file):
-                self.file = open(file)
+                self.file = open(file, 'rb')
                 self.closed = False
             def close(self):
                 self.file.close()


More information about the Python-checkins mailing list