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

Method test_no_modules

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

Source from the content-addressed store, hash-verified

3237 run_stubtest(stub=stub, runtime=runtime, options=[], config_file=config_file)
3238
3239 def test_no_modules(self) -> None:
3240 output = io.StringIO()
3241 with contextlib.redirect_stdout(output):
3242 test_stubs(parse_options([]))
3243 assert remove_color_code(output.getvalue()) == "error: no modules to check\n"
3244
3245 def test_module_and_typeshed(self) -> None:
3246 output = io.StringIO()

Callers

nothing calls this directly

Calls 3

test_stubsFunction · 0.90
parse_optionsFunction · 0.90
remove_color_codeFunction · 0.85

Tested by

no test coverage detected