()
| 61 | |
| 62 | |
| 63 | def test_excinfo_from_exception_simple() -> None: |
| 64 | try: |
| 65 | raise ValueError |
| 66 | except ValueError as e: |
| 67 | assert e.__traceback__ is not None |
| 68 | info = _pytest._code.ExceptionInfo.from_exception(e) |
| 69 | assert info.type == ValueError |
| 70 | |
| 71 | |
| 72 | def test_excinfo_from_exception_missing_traceback_assertion() -> None: |
nothing calls this directly
no test coverage detected