From ba80e35204862ed9212bfbca6e90f0ad6a49f20a Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Thu, 18 Sep 2014 13:30:46 +0200 Subject: [PATCH] Test for an issue with named params in class calls (instead of functions). --- test/test_api/test_api_classes.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_api/test_api_classes.py b/test/test_api/test_api_classes.py index 48601a31..5eaa13c4 100644 --- a/test/test_api/test_api_classes.py +++ b/test/test_api/test_api_classes.py @@ -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()