Issues with isinstance checks.

This commit is contained in:
Dave Halter
2015-11-27 12:22:02 +01:00
parent bc41ba7ca9
commit 6f4ac70140
2 changed files with 3 additions and 2 deletions

View File

@@ -461,7 +461,7 @@ def _check_isinstance_type(evaluator, element, search_name):
# and everything will be all right. # and everything will be all right.
classes = lst[1][1][0] classes = lst[1][1][0]
call = helpers.call_of_name(search_name) call = helpers.call_of_name(search_name)
assert name.get_code() == call.get_code() assert name.get_code(normalized=True) == call.get_code(normalized=True)
except AssertionError: except AssertionError:
return set() return set()

View File

@@ -62,8 +62,9 @@ def isinstance_func(arr):
#? 17 dict() #? 17 dict()
value. value.
elif isinstance(value, int): elif isinstance(value, int):
x = value
#? int() #? int()
value x
# ----------------- # -----------------
# Names with multiple indices. # Names with multiple indices.