()
| 45 | |
| 46 | |
| 47 | def test_excinfo_from_exc_info_simple() -> None: |
| 48 | try: |
| 49 | raise ValueError |
| 50 | except ValueError as e: |
| 51 | assert e.__traceback__ is not None |
| 52 | info = _pytest._code.ExceptionInfo.from_exc_info((type(e), e, e.__traceback__)) |
| 53 | assert info.type == ValueError |
| 54 | |
| 55 | |
| 56 | def test_excinfo_getstatement(): |
nothing calls this directly
no test coverage detected