diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-11-22 01:59:15 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-11-22 01:59:15 +0000 |
commit | 4d62fb55fdbd6b3e59aff1ac38e91eb511354b9c (patch) | |
tree | ac59b3d6d7beb1fea5d5ea928b40225fda97f5f6 /Lib/test/test_fileio.py | |
parent | e844cda0d4f784b34d49be0cf5023fd5b284dfb1 (diff) | |
download | cpython-4d62fb55fdbd6b3e59aff1ac38e91eb511354b9c.tar.gz |
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 cbc7165707..c9787795e3 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: |