#14
(self, pytester: Pytester)
| 606 | assert result.ret == 2 |
| 607 | |
| 608 | def test_capture_and_logging(self, pytester: Pytester) -> None: |
| 609 | """#14""" |
| 610 | p = pytester.makepyfile( |
| 611 | """\ |
| 612 | import logging |
| 613 | def test_log(capsys): |
| 614 | logging.error('x') |
| 615 | """ |
| 616 | ) |
| 617 | result = pytester.runpytest_subprocess(p) |
| 618 | assert "closed" not in result.stderr.str() |
| 619 | |
| 620 | @pytest.mark.parametrize("fixture", ["capsys", "capfd"]) |
| 621 | @pytest.mark.parametrize("no_capture", [True, False]) |
nothing calls this directly
no test coverage detected