()
| 315 | |
| 316 | |
| 317 | def test_findsource_fallback() -> None: |
| 318 | from _pytest._code.source import findsource |
| 319 | |
| 320 | src, lineno = findsource(x) |
| 321 | assert src is not None |
| 322 | assert "test_findsource_simple" in str(src) |
| 323 | assert src[lineno] == " def x():" |
| 324 | |
| 325 | |
| 326 | def test_findsource(monkeypatch) -> None: |
nothing calls this directly
no test coverage detected