From: Benjamin Peterson Date: Mon, 18 Mar 2013 04:28:29 +0000 (-0700) Subject: open file in binary mode X-Git-Tag: v2.7.4rc1~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bebf75f30a043752264983c256f227803f2169a4;p=thirdparty%2FPython%2Fcpython.git open file in binary mode --- diff --git a/Lib/test/test_cpickle.py b/Lib/test/test_cpickle.py index 702e0c9b064c..3bc700b1fb8a 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)