(self, pytester: Pytester, opt)
| 431 | class TestCaptureFixture: |
| 432 | @pytest.mark.parametrize("opt", [[], ["-s"]]) |
| 433 | def test_std_functional(self, pytester: Pytester, opt) -> None: |
| 434 | reprec = pytester.inline_runsource( |
| 435 | """\ |
| 436 | def test_hello(capsys): |
| 437 | print(42) |
| 438 | out, err = capsys.readouterr() |
| 439 | assert out.startswith("42") |
| 440 | """, |
| 441 | *opt, |
| 442 | ) |
| 443 | reprec.assertoutcome(passed=1) |
| 444 | |
| 445 | def test_capsyscapfd(self, pytester: Pytester) -> None: |
| 446 | p = pytester.makepyfile( |
nothing calls this directly
no test coverage detected