fix unittests

This commit is contained in:
debugtalk
2020-03-07 18:48:15 +08:00
parent c4e2e74f39
commit 9047d02eaf
4 changed files with 4 additions and 5 deletions

View File

@@ -77,7 +77,7 @@ def type_match(check_value, expect_value):
def get_type(name):
if isinstance(name, type):
return name
elif isinstance(name, str, bytes):
elif isinstance(name, str):
try:
return __builtins__[name]
except KeyError: