From c4c3f6370a0b708e362265a59a6eb41bffc1c14a Mon Sep 17 00:00:00 2001 From: "r.david.murray" Date: Thu, 7 May 2009 18:09:58 +0000 Subject: [PATCH] Pre-opened test file needs to be opened in binary mode. git-svn-id: http://svn.python.org/projects/python/trunk@72434 6015fed2-1504-0410-9fe1-9d1591cc4771 --- Lib/test/test_aifc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.11.4.GIT