Test cases for running mypy programs using a Python interpreter.
Each test case type checks a program then runs it using Python. The output (stdout) of the program is compared to expected output. Type checking uses full builtins and other stubs.
Note: Currently Python interpreter paths are hard coded.
Class | PythonEvaluationSuite |
Undocumented |
Function | adapt_output |
Translates the generic _program.py into the actual filename. |
Function | test_python_evaluation |
Runs Mypy in a subprocess. |
Variable | program_re |
Undocumented |
Parameters | |
testcase:DataDrivenTestCase | Undocumented |
Returns | |
List[ | Undocumented |
Runs Mypy in a subprocess.
If this passes without errors, executes the script again with a given Python version.
Parameters | |
testcase:DataDrivenTestCase | Undocumented |
cache_dir:str | Undocumented |