summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2009-05-07 18:09:58 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2009-05-07 18:09:58 (GMT)
commitf7e7babb55450f6c4c1829a2a4f7047d0a3405d1 (patch)
treea056f2440914f2f8898686a2a2827e8388d268c1 /Lib/test
parentd3bf34cd4b387e1f8b35cc52aa6db7d7a73c4d29 (diff)
downloadcpython-f7e7babb55450f6c4c1829a2a4f7047d0a3405d1.zip
cpython-f7e7babb55450f6c4c1829a2a4f7047d0a3405d1.tar.gz
cpython-f7e7babb55450f6c4c1829a2a4f7047d0a3405d1.tar.bz2
Pre-opened test file needs to be opened in binary mode.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_aifc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_aifc.py b/Lib/test/test_aifc.py
index 54694ea..cbf00e9 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()