diff --git a/Lib/test/test_aifc.py b/Lib/test/test_aifc.py index 54694ea2d91..cbf00e9a74d 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()