diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-11 21:09:22 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-11 21:09:22 (GMT) |
commit | 58f641d13682ad92866b73837bf20bf543e27a1a (patch) | |
tree | 010c58dd0d0632c03c767c2ab9544f9dc3213570 /tests | |
parent | c55203aef9f9cafeb00eac3687674ac042049e3f (diff) |
Return empty list for children
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tree.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tree.py b/tests/tree.py index b7694dc..0fc56bb 100644 --- a/tests/tree.py +++ b/tests/tree.py @@ -16,7 +16,7 @@ def retry_find(func): kwargs.get("role_name", None)) result = func(*args, **kwargs) - if result is not None: + if result: return result time.sleep(5) @@ -48,7 +48,7 @@ class Node: accessible = pyatspi.findDescendant(self._accessible, predicate) if accessible is None: - return None + return [] return Node(accessible) |