diff options
| author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-04 13:23:12 (GMT) |
|---|---|---|
| committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-03-04 13:23:12 (GMT) |
| commit | a84ecc649b9680e306f05bfd38c48181c59b416c (patch) | |
| tree | 44dd261f81e30ed1df0ab6b7fbfd5aeceac4f81f /Lib/test/pickletester.py | |
| parent | 7cac1c25a144a5d17353a245cec39198dc0b5d21 (diff) | |
| download | cpython-a84ecc649b9680e306f05bfd38c48181c59b416c.zip cpython-a84ecc649b9680e306f05bfd38c48181c59b416c.tar.gz cpython-a84ecc649b9680e306f05bfd38c48181c59b416c.tar.bz2 | |
#17346: make sure pickle tests are run against all protocols.
Diffstat (limited to 'Lib/test/pickletester.py')
| -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 f735e95..3e7e11d 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 = [] |
