Use isinstance instead of unary type

This commit is contained in:
Laurens Van Houtven committed 2013-07-10 19:00:11 +02:00
1 parent 18c105b055
commit afcaa89cf0
3 files changed
+3 -3

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 type(call) == pr.Call and str(call.name) == 'isinstance'
assert isinstance(call, pr.Call) and str(call.name) == 'isinstance'
assert bool(call.execution)
# isinstance check