From 1f44b1997d9b361044164be1ea1b30dc338a9034 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Mon, 4 Sep 2017 11:35:02 +0800 Subject: [PATCH] bugfix: private property should be _single_leading_underscore --- ate/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ate/utils.py b/ate/utils.py index 86d22bf8..1a21921a 100644 --- a/ate/utils.py +++ b/ate/utils.py @@ -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