diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-11 20:41:06 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-11 20:41:06 (GMT) |
commit | 1e861ca74a5e439b0f6b8e5b5db11a489bb7609b (patch) | |
tree | 23f0616a7103548f77b1624a2c7676a63c807307 /tests | |
parent | 135f66bc443ead87892f78f0e3415fa0280cc666 (diff) |
Don't retry when dumping the tree
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tree.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/tree.py b/tests/tree.py index 6e6cea9..2973c16 100644 --- a/tests/tree.py +++ b/tests/tree.py @@ -54,6 +54,9 @@ class Node: @retry_find def find_children(self, name=None, role_name=None): + self._find_children_internal(name, role_name) + + def _find_children_internal(self, name=None, role_name=None): def predicate(accessible): return self._predicate(accessible, name, role_name) @@ -69,7 +72,7 @@ class Node: def _crawl_accessible(self, accessible, depth): self._dump_accessible(accessible, depth) - for child in self.find_children(): + for child in self._find_children_internal(): self._crawl_accessible(child, depth + 1) def dump(self): |