File tree 2 files changed +8
-7
lines changed
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 7
7
8
8
from mypy import build
9
9
from mypy .build import BuildSource
10
- from mypy .myunit import Suite
11
10
from mypy .test import config
12
- from mypy .test .data import parse_test_cases , DataDrivenTestCase
11
+ from mypy .test .data import parse_test_cases , DataDrivenTestCase , DataSuite
13
12
from mypy .test .helpers import assert_string_arrays_equal
14
13
from mypy .util import short_type
15
14
from mypy .nodes import (
20
19
from mypy .options import Options
21
20
22
21
23
- class TypeExportSuite (Suite ):
22
+ class TypeExportSuite (DataSuite ):
24
23
# List of files that contain test case descriptions.
25
24
files = ['typexport-basic.test' ]
26
25
27
- def cases (self ) -> List [DataDrivenTestCase ]:
26
+ @classmethod
27
+ def cases (cls ) -> List [DataDrivenTestCase ]:
28
28
c = [] # type: List[DataDrivenTestCase]
29
- for f in self .files :
29
+ for f in cls .files :
30
30
c += parse_test_cases (os .path .join (config .test_data_prefix , f ),
31
- self . run_test , config .test_temp_dir )
31
+ None , config .test_temp_dir )
32
32
return c
33
33
34
- def run_test (self , testcase : DataDrivenTestCase ) -> None :
34
+ def run_case (self , testcase : DataDrivenTestCase ) -> None :
35
35
try :
36
36
line = testcase .input [0 ]
37
37
mask = ''
Original file line number Diff line number Diff line change @@ -205,6 +205,7 @@ def add_imports(driver: Driver) -> None:
205
205
'testfinegrained' ,
206
206
'testmerge' ,
207
207
'testtransform' ,
208
+ 'testtypegen' ,
208
209
'testparse' ,
209
210
]]
210
211
You can’t perform that action at this time.
0 commit comments