From: Serhiy Storchaka Date: Sun, 29 Nov 2015 17:20:11 +0000 (+0200) Subject: Trying to fix test_xpickle with python 2.4 and 2.5. X-Git-Tag: v2.7.12rc1~358 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=81772f1ee2d80b02e882e1132d5751fe0852e023;p=thirdparty%2FPython%2Fcpython.git Trying to fix test_xpickle with python 2.4 and 2.5. --- diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py index 267d3f088e5b..2e4c2c1a9730 100644 --- a/Lib/test/pickletester.py +++ b/Lib/test/pickletester.py @@ -723,8 +723,8 @@ class AbstractUnpickleTests(unittest.TestCase): self.check_unpickling_error(self.bad_mark_errors, p) def test_truncated_data(self): - self.check_unpickling_error(EOFError, b'') - self.check_unpickling_error(EOFError, b'N') + self.check_unpickling_error(EOFError, '') + self.check_unpickling_error(EOFError, 'N') badpickles = [ 'F', # FLOAT 'F0.0',