for flows triggered an exception if goto_assignments was used on the keyword. found with the help of sith.py

This commit is contained in:
Dave Halter
2014-04-16 09:57:01 +02:00
parent a341791fda
commit 15fdecdb61
3 changed files with 15 additions and 5 deletions

View File

@@ -94,3 +94,8 @@ def test_completion_on_complex_literals():
_check_number('4.0j.', 'complex')
# No dot no completion
assert api.Script('4j').completions() == []
def test_goto_assignments_on_for():
with raises(api.NotFoundError):
api.Script('for').goto_assignments()