From 403564315c3111ae26b0240836eb84a42e94d4e6 Mon Sep 17 00:00:00 2001 From: Peter Law Date: Tue, 21 Jul 2020 22:44:42 +0100 Subject: [PATCH] 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. --- test/test_api/test_call_signatures.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/test_api/test_call_signatures.py b/test/test_api/test_call_signatures.py index 2f0cf90c..664eec86 100644 --- a/test/test_api/test_call_signatures.py +++ b/test/test_api/test_call_signatures.py @@ -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)