Pre-opened test file needs to be opened in binary mode.

This commit is contained in:
R. David Murray 2009-05-07 18:09:58 +00:00
parent d3bf34cd4b
commit f7e7babb55

View file

@ -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()