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

Method test_mypy_build

mypy/test/teststubtest.py:3096–3107  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3094 os.unlink(allowlist.name)
3095
3096 def test_mypy_build(self) -> None:
3097 output = run_stubtest(stub="+", runtime="", options=[])
3098 assert output == (
3099 "error: not checking stubs due to failed mypy compile:\n{}.pyi:1: "
3100 "error: Invalid syntax [syntax]\n".format(TEST_MODULE_NAME)
3101 )
3102
3103 output = run_stubtest(stub="def f(): ...\ndef f(): ...", runtime="", options=[])
3104 assert output == (
3105 "error: not checking stubs due to mypy build errors:\n{}.pyi:2: "
3106 'error: Name "f" already defined on line 1 [no-redef]\n'.format(TEST_MODULE_NAME)
3107 )
3108
3109 def test_missing_stubs(self) -> None:
3110 output = io.StringIO()

Callers

nothing calls this directly

Calls 2

run_stubtestFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected