From: R. David Murray Date: Thu, 7 May 2009 18:09:58 +0000 (+0000) Subject: Pre-opened test file needs to be opened in binary mode. X-Git-Tag: v2.7a1~1253 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f7e7babb55450f6c4c1829a2a4f7047d0a3405d1;p=python Pre-opened test file needs to be opened in binary mode. --- diff --git a/Lib/test/test_aifc.py b/Lib/test/test_aifc.py index 54694ea2d9..cbf00e9a74 100644 --- a/Lib/test/test_aifc.py +++ b/Lib/test/test_aifc.py @@ -94,7 +94,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()