MCPcopy Index your code
hub / github.com/python/mypy / run_case

Method run_case

mypy/test/testcmdline.py:45–49  ·  view source on GitHub ↗
(self, testcase: DataDrivenTestCase)

Source from the content-addressed store, hash-verified

43 native_sep = True
44
45 def run_case(self, testcase: DataDrivenTestCase) -> None:
46 if lxml is None and os.path.basename(testcase.file) == "reports.test":
47 pytest.skip("Cannot import lxml. Is it installed?")
48 for step in [1] + sorted(testcase.output2):
49 test_python_cmdline(testcase, step)
50
51
52def test_python_cmdline(testcase: DataDrivenTestCase, step: int) -> None:

Callers

nothing calls this directly

Calls 2

sortedFunction · 0.85
test_python_cmdlineFunction · 0.85

Tested by

no test coverage detected