diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-11 21:16:39 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-11 21:16:39 (GMT) |
commit | 2634e737c752756a4d5a2177c6a88babf2088ac1 (patch) | |
tree | 74c85789af52cbc22b6881d02d5aeee089ddf5c7 /tests/tree.py | |
parent | 4ddc0b42785279b702abc9c362862a72aa683f18 (diff) |
Swapped list and single child
Diffstat (limited to 'tests/tree.py')
-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 329311a..8725098 100644 --- a/tests/tree.py +++ b/tests/tree.py @@ -49,7 +49,7 @@ class Node: accessible = pyatspi.findDescendant(self._accessible, predicate) if accessible is None: - return [] + return None return Node(accessible) @@ -63,7 +63,7 @@ class Node: all_accessibles = pyatspi.findAllDescendants(self._accessible, predicate) if not all_accessibles: - return None + return [] return [Node(accessible) for accessible in all_accessibles] |