mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
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:
@@ -121,11 +121,8 @@ def test_multiple_signatures(Script):
|
|||||||
|
|
||||||
|
|
||||||
def test_get_signatures_whitespace(Script):
|
def test_get_signatures_whitespace(Script):
|
||||||
s = dedent("""\
|
# note: trailing space after 'abs'
|
||||||
abs(
|
s = 'abs( \ndef x():\n pass\n'
|
||||||
def x():
|
|
||||||
pass
|
|
||||||
""")
|
|
||||||
assert_signature(Script, s, 'abs', 0, line=1, column=5)
|
assert_signature(Script, s, 'abs', 0, line=1, column=5)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user