mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +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
e0fc2b3fd1
commit
d025046ef5
1 changed files with 1 additions and 1 deletions
|
@ -2896,7 +2896,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