diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-11-06 04:15:29 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-06 04:15:29 -0800 |
commit | 92cc215518669aefb711e46977c8843a3a6dc751 (patch) | |
tree | 99dd5952d3bad6e1a74c87a99ee9c607381c02a5 | |
parent | 982273ae799c01e5f28fb6314d77591e0379813d (diff) | |
download | cpython-git-92cc215518669aefb711e46977c8843a3a6dc751.tar.gz |
`test_typing`: use all pickle protocols (GH-99154)
(cherry picked from commit a0bc75e2fdd53680cb147881bcb3754bd56aa2fa)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
-rw-r--r-- | Lib/test/test_typing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_typing.py b/Lib/test/test_typing.py index 6c53154686..7e033c02c4 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -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: |