From: Guido van Rossum Date: Mon, 9 Apr 2007 00:00:23 +0000 (+0000) Subject: Fix a place where it's pretty clear that a binary open mode was intended. X-Git-Tag: v3.0a1~1083 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=933520b5bae4727bf22c00fee9face3515bf95b6;p=python Fix a place where it's pretty clear that a binary open mode was intended. (The new I/O library revealed the problem.) --- diff --git a/Lib/test/test_bz2.py b/Lib/test/test_bz2.py index 518005aada..635c828d55 100644 --- a/Lib/test/test_bz2.py +++ b/Lib/test/test_bz2.py @@ -243,7 +243,7 @@ class BZ2FileTest(BaseTest): self.createTempFile() bz2f = BZ2File(self.filename, "U") bz2f.close() - f = open(self.filename) + f = open(self.filename, "rb") f.seek(0, 2) self.assertEqual(f.tell(), len(self.DATA)) f.close()