mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 14:54:47 +08:00
Test for an issue with named params in class calls (instead of functions).
This commit is contained in:
@@ -241,3 +241,9 @@ class TestGotoAssignments(TestCase):
|
||||
param = bar.goto_assignments()[0]
|
||||
assert param.start_pos == (1, 13)
|
||||
assert param.type == 'param'
|
||||
|
||||
def test_class_call(self):
|
||||
src = 'from threading import Thread; Thread(group=1)'
|
||||
n = names(src, references=True)[-1]
|
||||
assert n.name == 'group'
|
||||
assert n.goto_assignments()
|
||||
|
||||
Reference in New Issue
Block a user