diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-06-20 12:46:31 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-06-20 12:46:31 (GMT) |
commit | 11b41f6932bae5c3fecb436a564e2894aaf66f0d (patch) | |
tree | 765551f8f5ea60f25c8f2d4a9a386b4a461a8b36 /Lib | |
parent | 38e6a69a20b975b9a079170e7875fac130a05659 (diff) | |
download | cpython-11b41f6932bae5c3fecb436a564e2894aaf66f0d.zip cpython-11b41f6932bae5c3fecb436a564e2894aaf66f0d.tar.gz cpython-11b41f6932bae5c3fecb436a564e2894aaf66f0d.tar.bz2 |
Open files in binary mode.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/pickletester.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py index 057cb5e..927939e 100644 --- a/Lib/test/pickletester.py +++ b/Lib/test/pickletester.py @@ -936,7 +936,7 @@ class AbstractPickleModuleTests(unittest.TestCase): def test_dump_closed_file(self): import os - f = open(TESTFN, "w") + f = open(TESTFN, "wb") try: f.close() self.assertRaises(ValueError, self.module.dump, 123, f) @@ -945,7 +945,7 @@ class AbstractPickleModuleTests(unittest.TestCase): def test_load_closed_file(self): import os - f = open(TESTFN, "w") + f = open(TESTFN, "wb") try: f.close() self.assertRaises(ValueError, self.module.dump, 123, f) |