Skip to content

Commit a0bc75e

Browse files
authored
test_typing: use all pickle protocols (#99154)
1 parent 8feb7ab commit a0bc75e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2900,7 +2900,7 @@ class CP(P[int]):
29002900
self.assertEqual(x.bar, 'abc')
29012901
self.assertEqual(x.x, 1)
29022902
self.assertEqual(x.__dict__, {'foo': 42, 'bar': 'abc'})
2903-
s = pickle.dumps(P)
2903+
s = pickle.dumps(P, proto)
29042904
D = pickle.loads(s)
29052905

29062906
class E:

0 commit comments

Comments
 (0)