Change the behavior of eval_statement_element and follow_call_path. Arrays should only be looked at in the latter.

This commit is contained in:
Dave Halter
2014-09-18 23:44:11 +02:00
parent 69e6139527
commit 7b0bb83d16
2 changed files with 19 additions and 17 deletions

View File

@@ -249,3 +249,7 @@ class TestGotoAssignments(TestCase):
param_def = n.goto_assignments()[0]
assert param_def.name == 'group'
assert param_def.type == 'param'
def test_parentheses(self):
n = names('("").upper', references=True)[-1]
assert n.goto_assignments()[0].name == 'upper'