()
| 650 | |
| 651 | |
| 652 | def test_pytest_fail() -> None: |
| 653 | with pytest.raises(pytest.fail.Exception) as excinfo: |
| 654 | pytest.fail("hello") |
| 655 | s = excinfo.exconly(tryshort=True) |
| 656 | assert s.startswith("Failed") |
| 657 | |
| 658 | |
| 659 | def test_pytest_exit_msg(pytester: Pytester) -> None: |