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

Method test_capture_empty

mypy/test/testapi.py:29–33  ·  view source on GitHub ↗

stderr should be captured when a bad option is passed.

(self)

Source from the content-addressed store, hash-verified

27 assert stderr != ""
28
29 def test_capture_empty(self) -> None:
30 """stderr should be captured when a bad option is passed."""
31 _, stderr, _ = mypy.api.run([])
32 assert isinstance(stderr, str)
33 assert stderr != ""
34
35 def test_capture_help(self) -> None:
36 """stdout should be captured when --help is passed."""

Callers

nothing calls this directly

Calls 2

isinstanceFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected