mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
#17346: make sure pickle tests are run against all protocols.
This commit is contained in:
parent
7cac1c25a1
commit
a84ecc649b
1 changed files with 2 additions and 2 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue