From a0bc75e2fdd53680cb147881bcb3754bd56aa2fa Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Sun, 6 Nov 2022 14:53:57 +0300 Subject: `test_typing`: use all pickle protocols (#99154) --- Lib/test/test_typing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index f8168bd..6ff7f61 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -2900,7 +2900,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: -- cgit v0.12