(monkeypatch)
| 1650 | |
| 1651 | |
| 1652 | def test_exit_from_assertrepr_compare(monkeypatch) -> None: |
| 1653 | def raise_exit(obj): |
| 1654 | outcomes.exit("Quitting debugger") |
| 1655 | |
| 1656 | monkeypatch.setattr(util, "istext", raise_exit) |
| 1657 | |
| 1658 | with pytest.raises(outcomes.Exit, match="Quitting debugger"): |
| 1659 | callequal(1, 1) |
| 1660 | |
| 1661 | |
| 1662 | def test_assertion_location_with_coverage(pytester: Pytester) -> None: |