Debian Codegraph @

test/test_api/test_analysis.py

raw symbols SCIP
1 def test_issue436(Script):
2 code = "bar = 0\nbar += 'foo' + 4"
3 errors = set(repr(e) for e in Script(code)._analysis())
4 assert len(errors) == 2
5 assert '<Error type-error-operation: None@2,4>' in errors
6 assert '<Error type-error-operation: None@2,13>' in errors