module documentation

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 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
def adapt_output(testcase: DataDrivenTestCase) -> list[str]: (source)

Translates the generic _program.py into the actual filename.

def test_python_evaluation(testcase: DataDrivenTestCase, cache_dir: str): (source)

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

program_re = (source)

Undocumented