Skip to content

Commit 92cc215

Browse files
test_typing: use all pickle protocols (GH-99154)
(cherry picked from commit a0bc75e) Co-authored-by: Nikita Sobolev <[email protected]>
1 parent 982273a commit 92cc215

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_typing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1560,7 +1560,7 @@ class CP(P[int]):
15601560
self.assertEqual(x.bar, 'abc')
15611561
self.assertEqual(x.x, 1)
15621562
self.assertEqual(x.__dict__, {'foo': 42, 'bar': 'abc'})
1563-
s = pickle.dumps(P)
1563+
s = pickle.dumps(P, proto)
15641564
D = pickle.loads(s)
15651565

15661566
class E:

0 commit comments

Comments
 (0)