From a84ecc649b9680e306f05bfd38c48181c59b416c Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Mon, 4 Mar 2013 15:23:12 +0200 Subject: [PATCH] #17346: make sure pickle tests are run against all protocols. --- Lib/test/pickletester.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py index f735e955a1d..3e7e11da4d4 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 = []