diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-04 15:23:12 +0200 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-04 15:23:12 +0200 |
commit | a84ecc649b9680e306f05bfd38c48181c59b416c (patch) | |
tree | 44dd261f81e30ed1df0ab6b7fbfd5aeceac4f81f | |
parent | 7cac1c25a144a5d17353a245cec39198dc0b5d21 (diff) | |
download | cpython-git-a84ecc649b9680e306f05bfd38c48181c59b416c.tar.gz |
#17346: make sure pickle tests are run against all protocols.
-rw-r--r-- | Lib/test/pickletester.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/pickletester.py b/Lib/test/pickletester.py index f735e955a1..3e7e11da4d 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 = [] |