mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
test_typing: use all pickle protocols (GH-99154)
(cherry picked from commit a0bc75e2fd)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
parent
982273ae79
commit
92cc215518
1 changed files with 1 additions and 1 deletions
|
|
@ -1560,7 +1560,7 @@ class ProtocolTests(BaseTestCase):
|
|||
self.assertEqual(x.bar, 'abc')
|
||||
self.assertEqual(x.x, 1)
|
||||
self.assertEqual(x.__dict__, {'foo': 42, 'bar': 'abc'})
|
||||
s = pickle.dumps(P)
|
||||
s = pickle.dumps(P, proto)
|
||||
D = pickle.loads(s)
|
||||
|
||||
class E:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue