@@ -27,8 +27,8 @@ class TestFileOptions(TypedDict):
27
27
max_pyver : Tuple [int , ...]
28
28
min_pyver_end_position : Tuple [int , ...]
29
29
requires : List [str ]
30
- except_implementations : str # Type is actually comma separated list of string
31
- exclude_platforms : str # Type is actually comma separated list of string
30
+ except_implementations : List [ str ]
31
+ exclude_platforms : List [ str ]
32
32
33
33
34
34
# mypy need something literal, we can't create this dynamically from TestFileOptions
@@ -39,7 +39,6 @@ class TestFileOptions(TypedDict):
39
39
"requires" ,
40
40
"except_implementations" ,
41
41
"exclude_platforms" ,
42
- "exclude_platforms" ,
43
42
}
44
43
45
44
@@ -50,7 +49,9 @@ class FunctionalTestFile:
50
49
"min_pyver" : parse_python_version ,
51
50
"max_pyver" : parse_python_version ,
52
51
"min_pyver_end_position" : parse_python_version ,
53
- "requires" : lambda s : s .split ("," ),
52
+ "requires" : lambda s : [i .strip () for i in s .split ("," )],
53
+ "except_implementations" : lambda s : [i .strip () for i in s .split ("," )],
54
+ "exclude_platforms" : lambda s : [i .strip () for i in s .split ("," )],
54
55
}
55
56
56
57
def __init__ (self , directory : str , filename : str ) -> None :
@@ -61,8 +62,8 @@ def __init__(self, directory: str, filename: str) -> None:
61
62
"max_pyver" : (4 , 0 ),
62
63
"min_pyver_end_position" : (3 , 8 ),
63
64
"requires" : [],
64
- "except_implementations" : "" ,
65
- "exclude_platforms" : "" ,
65
+ "except_implementations" : [] ,
66
+ "exclude_platforms" : [] ,
66
67
}
67
68
self ._parse_options ()
68
69
0 commit comments