Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests/tree.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tree.py')
-rw-r--r--tests/tree.py4
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]