()
| 641 | |
| 642 | |
| 643 | def test_getstartingblock_multiline() -> None: |
| 644 | class A: |
| 645 | def __init__(self, *args): |
| 646 | frame = sys._getframe(1) |
| 647 | self.source = Frame(frame).statement |
| 648 | |
| 649 | # fmt: off |
| 650 | x = A('x', |
| 651 | 'y' |
| 652 | , |
| 653 | 'z') |
| 654 | # fmt: on |
| 655 | values = [i for i in x.source.lines if i.strip()] |
| 656 | assert len(values) == 4 |