diff --git a/testing/code/test_source_multiline_block.py b/testing/code/test_source_multiline_block.py index 432421f06..8c41c9efa 100644 --- a/testing/code/test_source_multiline_block.py +++ b/testing/code/test_source_multiline_block.py @@ -12,14 +12,15 @@ def test_getstartingblock_multiline(): see hhatto/autopep8#307). It was considered better to just move this single test to its own file and exclude it from autopep8 than try to complicate things. """ - class A(object): - def __init__(self, *args): frame = sys._getframe(1) self.source = _pytest._code.Frame(frame).statement - - x = A("x", "y", "z") - + # fmt: off + x = A('x', + 'y' + , + 'z') + # fmt: on values = [i for i in x.source.lines if i.strip()] assert len(values) == 4