()
| 356 | |
| 357 | |
| 358 | def test_excinfo_no_sourcecode(): |
| 359 | try: |
| 360 | exec("raise ValueError()") |
| 361 | except ValueError: |
| 362 | excinfo = _pytest._code.ExceptionInfo.from_current() |
| 363 | s = str(excinfo.traceback[-1]) |
| 364 | assert s == " File '<string>':1 in <module>\n ???\n" |
| 365 | |
| 366 | |
| 367 | def test_excinfo_no_python_sourcecode(tmp_path: Path) -> None: |
nothing calls this directly
no test coverage detected