bugfix: imported module should not be considered as variable

This commit is contained in:
httprunner
2017-09-01 19:01:34 +08:00
parent 9e3b9c47cd
commit c8543e51ea
2 changed files with 18 additions and 0 deletions

View File

@@ -263,6 +263,9 @@ def is_variable(tup):
if callable(item):
return False
if isinstance(item, types.ModuleType):
return False
if name.startswith("__"):
return False