]> granicus.if.org Git - python/commitdiff
Merged revisions 72434 via svnmerge from
authorR. David Murray <rdmurray@bitdance.com>
Thu, 7 May 2009 18:25:20 +0000 (18:25 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Thu, 7 May 2009 18:25:20 +0000 (18:25 +0000)
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.
........

Lib/test/test_aifc.py

index 2f4350d0ea8098d524f2a69f20729e4e59917a3a..d6b7942926697c3c577fe68419e3ec465155cb51 100644 (file)
@@ -48,7 +48,7 @@ class AIFCTest(unittest.TestCase):
     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()