module documentation
(source)

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.

Note: These test cases are not included in the main test suite, as including
this suite would slow down the main suite too much.
Class ​Python​Evaluation​Suite 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
def adapt_output(testcase): (source)
Translates the generic _program.py into the actual filename.
Parameters
testcase:DataDrivenTestCaseUndocumented
Returns
List[str]Undocumented
def test_python_evaluation(testcase, cache_dir): (source)

Runs Mypy in a subprocess.

If this passes without errors, executes the script again with a given Python version.

Parameters
testcase:DataDrivenTestCaseUndocumented
cache​_dir:strUndocumented
program_re = (source)

Undocumented