diff options
| author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-11-06 12:15:45 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-06 12:15:45 (GMT) |
| commit | d025046ef5867ccf47b2e0dad7dee07b277c38b1 (patch) | |
| tree | d2735f56fe8dbe4ad78de9f1040d0854bbafe853 /Lib/test/test_typing.py | |
| parent | e0fc2b3fd1f752e798d210971b2dbf3dc84c7b47 (diff) | |
| download | cpython-d025046ef5867ccf47b2e0dad7dee07b277c38b1.zip cpython-d025046ef5867ccf47b2e0dad7dee07b277c38b1.tar.gz cpython-d025046ef5867ccf47b2e0dad7dee07b277c38b1.tar.bz2 | |
`test_typing`: use all pickle protocols (GH-99154)
(cherry picked from commit a0bc75e2fdd53680cb147881bcb3754bd56aa2fa)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Diffstat (limited to 'Lib/test/test_typing.py')
| -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 3b0d767..1206ab7 100644 --- a/Lib/test/test_typing.py +++ b/Lib/test/test_typing.py @@ -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: |
