diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-11-22 00:41:45 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-11-22 00:41:45 (GMT) |
commit | 44309e6b3768d6d559491ddf6ca56bfad2adb9b5 (patch) | |
tree | 5d71526f8d1b06a39c67191bf55e85e68c205c95 /Lib/test/test_fileio.py | |
parent | 656aa28cd50d00171d46df30eaeecd45eb0ae32c (diff) | |
download | cpython-44309e6b3768d6d559491ddf6ca56bfad2adb9b5.zip cpython-44309e6b3768d6d559491ddf6ca56bfad2adb9b5.tar.gz cpython-44309e6b3768d6d559491ddf6ca56bfad2adb9b5.tar.bz2 |
make FileIO.mode always include 'b'
#4386 Reviewed by Amaury
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 a11d3ba..80de93d 100644 --- a/Lib/test/test_fileio.py +++ b/Lib/test/test_fileio.py @@ -49,7 +49,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 @@ -159,7 +159,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: |