@@ -1058,14 +1058,15 @@ class C(B[int]):
|
1058 | 1058 | self.assertEqual(x.bar, 'abc') |
1059 | 1059 | self.assertEqual(x.__dict__, {'foo': 42, 'bar': 'abc'}) |
1060 | 1060 | samples = [Any, Union, Tuple, Callable, ClassVar, |
1061 | | -Union[int, str], ClassVar[List], Tuple[int, ...], Callable[[str], bytes]] |
| 1061 | +Union[int, str], ClassVar[List], Tuple[int, ...], Callable[[str], bytes], |
| 1062 | +typing.DefaultDict, typing.FrozenSet[int]] |
1062 | 1063 | for s in samples: |
1063 | 1064 | for proto in range(pickle.HIGHEST_PROTOCOL + 1): |
1064 | 1065 | z = pickle.dumps(s, proto) |
1065 | 1066 | x = pickle.loads(z) |
1066 | 1067 | self.assertEqual(s, x) |
1067 | 1068 | more_samples = [List, typing.Iterable, typing.Type, List[int], |
1068 | | -typing.Type[typing.Mapping]] |
| 1069 | +typing.Type[typing.Mapping], typing.AbstractSet[Tuple[int, str]]] |
1069 | 1070 | for s in more_samples: |
1070 | 1071 | for proto in range(pickle.HIGHEST_PROTOCOL + 1): |
1071 | 1072 | z = pickle.dumps(s, proto) |
|