Conditions | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import typing |
||
21 | def test_get_mro_union(self): |
||
22 | mro_u = get_mro(Union[int, str]) |
||
23 | |||
24 | # Below is to stay compatible with Python 3.5+ |
||
25 | super_cls = getattr(typing, '_GenericAlias', |
||
26 | getattr(typing, 'GenericMeta', None)) |
||
27 | expected = (typing.Union, super_cls, object) |
||
28 | |||
29 | self.assertTupleEqual(expected, mro_u) |
||
30 | |||
34 |