Fixed false positive in unbound vars inspection for assert False with argument (PY-7784)

This commit is contained in:
Andrey Vlasovskikh
2013-01-25 16:59:55 +04:00
parent 6e50b73b1a
commit 451e92581d
4 changed files with 17 additions and 1 deletions
@@ -0,0 +1,4 @@
assert False, 'foo'
print('unreachable 1')
assert False, f()
print('unreachable 2')
@@ -0,0 +1,7 @@
0(1) element: null
1(6) READ ACCESS: False
2(3) element: PyPrintStatement
3(4) READ ACCESS: False
4(6) READ ACCESS: f
5(6) element: PyPrintStatement
6() element: null