Fix some error node handling for call signatures

This commit is contained in:
Dave Halter
2019-07-08 13:22:07 -07:00
parent 08019075c3
commit dd78f4cfbf
2 changed files with 15 additions and 10 deletions

View File

@@ -457,13 +457,13 @@ code4 = 'def i(u, /, v, *args, x=1, y, **kwargs): pass'
(code4, 'i(a,b,c,d,e', 2),
(code4, 'i(a,b,c,d,e=', 5),
(code4, 'i(a,b,c,d,e=3', 5),
#(code4, 'i(a,b,c,d=,x=', 3),
(code4, 'i(a,b,c,d=,x=', 3),
(code4, 'i(a,b,c,d=5,x=4', 3),
(code4, 'i(a,b,c,d=5,x=4,y', 4),
(code4, 'i(a,b,c,d=5,x=4,y=3,', 5),
(code4, 'i(a,b,c,d=5,y=4,x=3,', 5),
(code4, 'i(a,b,c,d=4,', 3),
(code4, 'i(a,b,c,x=1,d=2,', 4),
(code4, 'i(a,b,c,x=1,d=,', 4),
]
)
def test_signature_index(skip_pre_python38, Script, code, call, expected_index):