Fix some call signature tests

This commit is contained in:
Dave Halter
2019-07-09 00:46:53 -07:00
parent ee5557ddf6
commit e85fba844c
2 changed files with 2 additions and 2 deletions

View File

@@ -250,7 +250,7 @@ def _iter_arguments(nodes, position):
if second.start_pos < position:
yield 0, first.value, True
else:
yield 0, remove_after_pos(first), True
yield 0, remove_after_pos(first), False
elif first in ('*', '**'):
yield len(first.value), remove_after_pos(second), False
else:

View File

@@ -44,7 +44,7 @@ class TestCallSignatures(TestCase):
run(s1, 'sorted', 0, 7)
run(s1, 'sorted', 1, 9)
run(s1, 'sorted', 1, 10)
run(s1, 'sorted', 1, 11)
run(s1, 'sorted', None, 11)
run(s1, 'bool', 0, 15)
s2 = "abs(), "