From bebf75f30a043752264983c256f227803f2169a4 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 17 Mar 2013 21:28:29 -0700 Subject: [PATCH] open file in binary mode --- Lib/test/test_cpickle.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_cpickle.py b/Lib/test/test_cpickle.py index 702e0c9b06..3bc700b1fb 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) -- 2.50.1