Kaydet (Commit) a84ecc64 authored tarafından Ezio Melotti's avatar Ezio Melotti

#17346: make sure pickle tests are run against all protocols.

üst 7cac1c25
...@@ -503,10 +503,10 @@ class AbstractPickleTests(unittest.TestCase): ...@@ -503,10 +503,10 @@ class AbstractPickleTests(unittest.TestCase):
i = C() i = C()
i.attr = i i.attr = i
for proto in protocols: for proto in protocols:
s = self.dumps(i, 2) s = self.dumps(i, proto)
x = self.loads(s) x = self.loads(s)
self.assertEqual(dir(x), dir(i)) self.assertEqual(dir(x), dir(i))
self.assertTrue(x.attr is x) self.assertIs(x.attr, x)
def test_recursive_multi(self): def test_recursive_multi(self):
l = [] l = []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment