From: Ezio Melotti Date: Mon, 4 Mar 2013 13:23:12 +0000 (+0200) Subject: #17346: make sure pickle tests are run against all protocols. X-Git-Tag: v2.7.4rc1~64^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a84ecc649b9680e306f05bfd38c48181c59b416c;p=thirdparty%2FPython%2Fcpython.git #17346: make sure pickle tests are run against all protocols. --- diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py index f735e955a1da..3e7e11da4d4d 100644 --- a/Lib/test/pickletester.py +++ b/Lib/test/pickletester.py @@ -503,10 +503,10 @@ class AbstractPickleTests(unittest.TestCase): i = C() i.attr = i for proto in protocols: - s = self.dumps(i, 2) + s = self.dumps(i, proto) x = self.loads(s) self.assertEqual(dir(x), dir(i)) - self.assertTrue(x.attr is x) + self.assertIs(x.attr, x) def test_recursive_multi(self): l = []