mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Issue #15535: Fix pickling of named tuples.
This commit is contained in:
parent
8e596a765c
commit
b98dcc1f53
4 changed files with 9 additions and 0 deletions
|
|
@ -273,6 +273,7 @@ class TestNamedTuple(unittest.TestCase):
|
|||
q = loads(dumps(p, protocol))
|
||||
self.assertEqual(p, q)
|
||||
self.assertEqual(p._fields, q._fields)
|
||||
self.assertNotIn(b'OrderedDict', dumps(p, protocol))
|
||||
|
||||
def test_copy(self):
|
||||
p = TestNT(x=10, y=20, z=30)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue