1
0
forked from VimPlug/jedi

Fake context python code is now not the base for a lot of things anymore. It just gets executed.

This commit is contained in:
Dave Halter
2017-11-28 18:26:12 +01:00
parent a2b08eabc6
commit 47114178e9
4 changed files with 18 additions and 19 deletions

View File

@@ -324,8 +324,8 @@ def test_keyword_argument_index():
def get(source, column=None):
return Script(source, column=column).call_signatures()[0]
assert get('sorted([], key=a').index == 2
assert get('sorted([], key=').index == 2
assert get('sorted([], key=a').index == 1
assert get('sorted([], key=').index == 1
assert get('sorted([], no_key=a').index is None
kw_func = 'def foo(a, b): pass\nfoo(b=3, a=4)'