|
5 | 5 | import subprocess
|
6 | 6 | import sys
|
7 | 7 |
|
8 |
| -from typing import Tuple, List, Dict, Set |
9 |
| - |
10 |
| -from mypy.test.data import parse_test_cases, DataDrivenTestCase, DataSuite |
| 8 | +from mypy.test.data import parse_test_cases, DataSuite |
11 | 9 | from mypy.test.helpers import (assert_string_arrays_equal,
|
12 | 10 | normalize_error_messages)
|
13 | 11 |
|
|
21 | 19 | class PythonEvaluationSuite(DataSuite):
|
22 | 20 |
|
23 | 21 | @classmethod
|
24 |
| - def cases(cls) -> List[DataDrivenTestCase]: |
| 22 | + def cases(cls): |
25 | 23 | return parse_test_cases(test_file,
|
26 | 24 | _test_python_evaluation,
|
27 | 25 | base_path=test_temp_dir,
|
28 | 26 | optional_out=True,
|
29 | 27 | native_sep=True)
|
30 | 28 |
|
31 |
| - def run_case(self, testcase: DataDrivenTestCase): |
| 29 | + def run_case(self, testcase): |
32 | 30 | _test_python_evaluation(testcase)
|
33 | 31 |
|
34 | 32 |
|
35 |
| -def _test_python_evaluation(testcase: DataDrivenTestCase) -> None: |
| 33 | +def _test_python_evaluation(testcase): |
36 | 34 | assert testcase.old_cwd is not None, "test was not properly set up"
|
37 | 35 | # Write the program to a file.
|
38 | 36 | program = '_program.py'
|
@@ -61,7 +59,7 @@ def _test_python_evaluation(testcase: DataDrivenTestCase) -> None:
|
61 | 59 | testcase.file, testcase.line))
|
62 | 60 |
|
63 | 61 |
|
64 |
| -def parse_args(line: str) -> List[str]: |
| 62 | +def parse_args(line): |
65 | 63 | """Parse the first line of the program for the command line.
|
66 | 64 |
|
67 | 65 | This should have the form
|
|
0 commit comments