fixed PY-7971 Insert type assertion: produces invalid assertion in case of caret at the second reference in expression

This commit is contained in:
Ekaterina Tuzova
2012-11-08 16:59:34 +04:00
parent d8514c8ddc
commit 723180f142
4 changed files with 16 additions and 4 deletions
@@ -0,0 +1,4 @@
def foo3(x, y):
assert isinstance(y, object)
i = x + y
return i
@@ -0,0 +1,3 @@
def foo3(x, y):
i = x + <caret>y
return i