stderr should be captured when a bad option is passed.
(self)
| 21 | assert self.stderr.getvalue() == "" |
| 22 | |
| 23 | def test_capture_bad_opt(self) -> None: |
| 24 | """stderr should be captured when a bad option is passed.""" |
| 25 | _, stderr, _ = mypy.api.run(["--some-bad-option"]) |
| 26 | assert isinstance(stderr, str) |
| 27 | assert stderr != "" |
| 28 | |
| 29 | def test_capture_empty(self) -> None: |
| 30 | """stderr should be captured when a bad option is passed.""" |
nothing calls this directly
no test coverage detected