Reflow test to ensure trailing space is preserved

Many editors strip trailing space, so avoid using a multiline
string where the space is actually needed.
This commit is contained in:
Peter Law
2020-07-21 22:44:42 +01:00
parent 5e6138d16f
commit 403564315c

View File

@@ -121,11 +121,8 @@ def test_multiple_signatures(Script):
def test_get_signatures_whitespace(Script):
s = dedent("""\
abs(
def x():
pass
""")
# note: trailing space after 'abs'
s = 'abs( \ndef x():\n pass\n'
assert_signature(Script, s, 'abs', 0, line=1, column=5)