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

Method test_capture_version

mypy/test/testapi.py:41–45  ·  view source on GitHub ↗

stdout should be captured when --version is passed.

(self)

Source from the content-addressed store, hash-verified

39 assert stdout != ""
40
41 def test_capture_version(self) -> None:
42 """stdout should be captured when --version is passed."""
43 stdout, _, _ = mypy.api.run(["--version"])
44 assert isinstance(stdout, str)
45 assert stdout != ""

Callers

nothing calls this directly

Calls 2

isinstanceFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected