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