()
| 554 | |
| 555 | |
| 556 | def test_pytest_fail() -> None: |
| 557 | with pytest.raises(pytest.fail.Exception) as excinfo: |
| 558 | pytest.fail("hello") |
| 559 | s = excinfo.exconly(tryshort=True) |
| 560 | assert s.startswith("Failed") |
| 561 | |
| 562 | |
| 563 | def test_pytest_exit_msg(pytester: Pytester) -> None: |