Operator statement wrapper was missing (fixes #436)

This commit is contained in:
Danilo Bargen
2014-07-27 12:53:18 +02:00
parent a01e4c6b37
commit c97e1732ee
5 changed files with 26 additions and 9 deletions

View File

@@ -0,0 +1,12 @@
"""
Test of keywords and ``jedi.keywords``
"""
from jedi import Script
def test_issue436():
code = "bar = 0\nbar += 'foo' + 4"
errors = set(repr(e) for e in Script(code)._analysis())
assert len(errors) == 2
assert '<Error type-error-operation: None@2,4>' in errors
assert '<Error type-error-operation: None@2,13>' in errors