failures on Windows. Closes SF bug # 609988.
\f
def openfile(filename):
path = os.path.join(os.path.dirname(landmark), 'data', filename)
- return open(path)
+ return open(path, 'rb')
\f
class TestMIMEAudio(unittest.TestCase):
def setUp(self):
# In Python, audiotest.au lives in Lib/test not Lib/test/data
- fp = open(findfile('audiotest.au'))
+ fp = open(findfile('audiotest.au'), 'rb')
try:
self._audiodata = fp.read()
finally:
def openfile(filename):
from os.path import join, dirname, abspath
path = abspath(join(dirname(testfile), os.pardir, 'moredata', filename))
- return open(path)
+ return open(path, 'rb')
# Prevent this test from running in the Python distro
try: