commit | f7e7babb55450f6c4c1829a2a4f7047d0a3405d1 | [log] [tgz] |
---|---|---|
author | R. David Murray <rdmurray@bitdance.com> | Thu May 07 18:09:58 2009 +0000 |
committer | R. David Murray <rdmurray@bitdance.com> | Thu May 07 18:09:58 2009 +0000 |
tree | a056f2440914f2f8898686a2a2827e8388d268c1 | |
parent | d3bf34cd4b387e1f8b35cc52aa6db7d7a73c4d29 [diff] [blame] |
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()