bugfix: private property should be _single_leading_underscore

This commit is contained in:
httprunner
2017-09-04 11:35:02 +08:00
parent 1013971cf9
commit cdae396fd2

View File

@@ -261,12 +261,15 @@ def is_variable(tup):
"""
name, item = tup
if callable(item):
# function or class
return False
if isinstance(item, types.ModuleType):
# imported module
return False
if name.startswith("__"):
if name.startswith("_"):
# private property
return False
return True