@@ -211,11 +211,10 @@ def test_path(*names: str):
211
211
'testtypegen' ,
212
212
'testparse' ,
213
213
'testsemanal' ,
214
+ 'testpythoneval' ,
215
+ 'testcmdline'
214
216
)
215
217
216
- PYEVAL_FILES = test_path ('testpythoneval' )
217
- CMD_FILES = test_path ('testcmdline' )
218
-
219
218
MYUNIT_FILES = test_path (
220
219
'teststubgen' , # contains data-driven suite
221
220
@@ -229,36 +228,19 @@ def test_path(*names: str):
229
228
'testtypes'
230
229
)
231
230
231
+ for f in find_files ('mypy' , prefix = 'test' , suffix = '.py' ):
232
+ assert f in PYTEST_FILES + MYUNIT_FILES , f
232
233
233
- def add_pytest (driver : Driver ) -> None :
234
- driver .add_pytest ('pytest' , PYEVAL_FILES + CMD_FILES + PYTEST_FILES )
235
-
236
-
237
- def add_pythoneval (driver : Driver ) -> None :
238
- pass
239
- # driver.add_pytest('eval', PYEVAL_FILES)
240
234
241
-
242
- def add_cmdline (driver : Driver ) -> None :
243
- pass
244
- # driver.add_pytest('cmd', CMD_FILES)
235
+ def add_pytest (driver : Driver ) -> None :
236
+ driver .add_pytest ('pytest' , PYTEST_FILES )
245
237
246
238
247
239
def add_myunit (driver : Driver ) -> None :
248
- for f in find_files ( 'mypy' , prefix = 'test' , suffix = '.py' ) :
240
+ for f in MYUNIT_FILES :
249
241
mod = file_to_module (f )
250
- if mod in ('mypy.test.testpythoneval' , 'mypy.test.testcmdline' ):
251
- # Run Python evaluation integration tests and command-line
252
- # parsing tests separately since they are much slower than
253
- # proper unit tests.
254
- pass
255
- elif f in PYTEST_FILES :
256
- # This module has been converted to pytest; don't try to use myunit.
257
- pass
258
- else :
259
- assert f in MYUNIT_FILES , f
260
- driver .add_python_mod ('unit-test %s' % mod , 'mypy.myunit' , '-m' , mod ,
261
- * driver .arglist , coverage = True )
242
+ driver .add_python_mod ('unit-test %s' % mod , 'mypy.myunit' , '-m' , mod ,
243
+ * driver .arglist , coverage = True )
262
244
263
245
264
246
def add_stubs (driver : Driver ) -> None :
@@ -432,8 +414,6 @@ def main() -> None:
432
414
433
415
driver .add_flake8 ()
434
416
add_pytest (driver )
435
- add_pythoneval (driver )
436
- add_cmdline (driver )
437
417
add_basic (driver )
438
418
add_selftypecheck (driver )
439
419
add_myunit (driver )
0 commit comments