Pre-opened test file needs to be opened in binary mode.
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 @@
     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()