(self)
| 158 | |
| 159 | class TestExceptionInfo: |
| 160 | def test_bad_getsource(self) -> None: |
| 161 | try: |
| 162 | if False: |
| 163 | pass # type: ignore[unreachable] |
| 164 | else: |
| 165 | assert False |
| 166 | except AssertionError: |
| 167 | exci = ExceptionInfo.from_current() |
| 168 | assert exci.getrepr() |
| 169 | |
| 170 | def test_from_current_with_missing(self) -> None: |
| 171 | with pytest.raises(AssertionError, match="no current exception"): |
nothing calls this directly
no test coverage detected