(self)
| 143 | |
| 144 | class TestExceptionInfo: |
| 145 | def test_bad_getsource(self) -> None: |
| 146 | try: |
| 147 | if False: |
| 148 | pass |
| 149 | else: |
| 150 | assert False |
| 151 | except AssertionError: |
| 152 | exci = ExceptionInfo.from_current() |
| 153 | assert exci.getrepr() |
| 154 | |
| 155 | def test_from_current_with_missing(self) -> None: |
| 156 | with pytest.raises(AssertionError, match="no current exception"): |
nothing calls this directly
no test coverage detected