summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2013-03-18 04:28:29 (GMT)
committerBenjamin Peterson <benjamin@python.org>2013-03-18 04:28:29 (GMT)
commitbebf75f30a043752264983c256f227803f2169a4 (patch)
tree77b489153b6131af0fd356575ef08cb19c0bd32b
parent35893b799496c8a9d118e64b49f10ac9bf369760 (diff)
downloadcpython-bebf75f30a043752264983c256f227803f2169a4.zip
cpython-bebf75f30a043752264983c256f227803f2169a4.tar.gz
cpython-bebf75f30a043752264983c256f227803f2169a4.tar.bz2
open file in binary mode
-rw-r--r--Lib/test/test_cpickle.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_cpickle.py b/Lib/test/test_cpickle.py
index 702e0c9..3bc700b 100644
--- a/Lib/test/test_cpickle.py
+++ b/Lib/test/test_cpickle.py
@@ -23,10 +23,10 @@ class BytesIOMixin:
class FileIOMixin:
def output(self):
- return open(test_support.TESTFN, 'w+')
+ return open(test_support.TESTFN, 'wb+')
def input(self, data):
- f = open(test_support.TESTFN, 'w+')
+ f = open(test_support.TESTFN, 'wb+')
try:
f.write(data)
f.seek(0)