diff options
| author | Benjamin Peterson <benjamin@python.org> | 2008-11-22 01:59:15 (GMT) |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2008-11-22 01:59:15 (GMT) |
| commit | bfc51567f5ca1af7e1950519b8b34037a4f11bb0 (patch) | |
| tree | 63e28192327207e4a1d69867661da41e2be8dbd7 /Lib/test/test_fileio.py | |
| parent | c078f929cb20f3e48fc1636ae8c211bc4f91a483 (diff) | |
| download | cpython-bfc51567f5ca1af7e1950519b8b34037a4f11bb0.zip cpython-bfc51567f5ca1af7e1950519b8b34037a4f11bb0.tar.gz cpython-bfc51567f5ca1af7e1950519b8b34037a4f11bb0.tar.bz2 | |
backport r67325: make FileIO.mode always contain 'b'
Diffstat (limited to 'Lib/test/test_fileio.py')
| -rw-r--r-- | Lib/test/test_fileio.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_fileio.py b/Lib/test/test_fileio.py index cbc7165..c978779 100644 --- a/Lib/test/test_fileio.py +++ b/Lib/test/test_fileio.py @@ -50,7 +50,7 @@ class AutoFileTests(unittest.TestCase): # verify expected attributes exist f = self.f - self.assertEquals(f.mode, "w") + self.assertEquals(f.mode, "wb") self.assertEquals(f.closed, False) # verify the attributes are readonly @@ -160,7 +160,7 @@ class OtherFileTests(unittest.TestCase): def testModeStrings(self): # check invalid mode strings - for mode in ("", "aU", "wU+", "rb", "rt"): + for mode in ("", "aU", "wU+", "rw", "rt"): try: f = _fileio._FileIO(TESTFN, mode) except ValueError: |
