| 882 | sys.last_traceback and friends.""" |
| 883 | # Simulate item that might raise a specific exception, depending on `raise_error` class var |
| 884 | class ItemMightRaise: |
| 885 | nodeid = "item_that_raises" |
| 886 | raise_error = True |
| 887 | |
| 888 | def runtest(self): |
| 889 | if self.raise_error: |
| 890 | raise IndexError("TEST") |
| 891 | |
| 892 | try: |
| 893 | runner.pytest_runtest_call(ItemMightRaise()) # type: ignore[arg-type] |
no outgoing calls