1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-04 11:40:04 +08:00
SpaceVim/bundle/jedi-vim/pythonx/jedi/test/test_api/test_analysis.py

7 lines
279 B
Python
Raw Normal View History

2022-10-23 15:41:52 +08:00
def test_issue436(Script):
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