Move isinstance checks back to unary type checks

This commit is contained in:
Laurens Van Houtven committed 2013-07-11 20:36:00 +02:00
1 parent 73662fe893
commit 627266b38d
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -526,7 +526,7 @@ def check_statement_information(stmt, search_name):
# this might be removed if we analyze and, etc
assert len(commands) == 1
call = commands[0]
assert isinstance(call, pr.Call) and str(call.name) == 'isinstance'
assert type(call) is pr.Call and str(call.name) == 'isinstance'
assert bool(call.execution)
# isinstance check