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:
Miss Islington (bot) 2022-11-06 04:15:29 -08:00 committed by GitHub
parent 982273ae79
commit 92cc215518
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: