1
0
forked from VimPlug/jedi
Files
jedi-fork/test/test_api/test_analysis.py
2017-05-07 16:14:21 +02:00

13 lines
346 B
Python

"""
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