mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-16 20:47:35 +08:00
bugfix: imported module should not be considered as variable
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user