()
| 58 | |
| 59 | |
| 60 | def test_frame_getsourcelineno_myself() -> None: |
| 61 | def func() -> FrameType: |
| 62 | return sys._getframe(0) |
| 63 | |
| 64 | f = Frame(func()) |
| 65 | source, lineno = f.code.fullsource, f.lineno |
| 66 | assert source is not None |
| 67 | assert source[lineno].startswith(" return sys._getframe(0)") |
| 68 | |
| 69 | |
| 70 | def test_getstatement_empty_fullsource() -> None: |