restore formatting of test_source_multiline_block

This commit is contained in:
Ronny Pfannschmidt 2018-05-23 20:26:13 +02:00
parent d4bf2ff8f5
commit 57a55cd0a3
1 changed files with 6 additions and 5 deletions

View File

@ -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 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. file and exclude it from autopep8 than try to complicate things.
""" """
class A(object): class A(object):
def __init__(self, *args): def __init__(self, *args):
frame = sys._getframe(1) frame = sys._getframe(1)
self.source = _pytest._code.Frame(frame).statement self.source = _pytest._code.Frame(frame).statement
# fmt: off
x = A("x", "y", "z") x = A('x',
'y'
,
'z')
# fmt: on
values = [i for i in x.source.lines if i.strip()] values = [i for i in x.source.lines if i.strip()]
assert len(values) == 4 assert len(values) == 4