Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-11-11 21:12:36 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-11 21:12:36 (GMT)
commit4ddc0b42785279b702abc9c362862a72aa683f18 (patch)
treeadec9bc4e504b62e3bf799876ce7398c089e757c /tests
parent58f641d13682ad92866b73837bf20bf543e27a1a (diff)
Return the last result
Diffstat (limited to 'tests')
-rw-r--r--tests/tree.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tree.py b/tests/tree.py
index 0fc56bb..329311a 100644
--- a/tests/tree.py
+++ b/tests/tree.py
@@ -7,6 +7,7 @@ def get_root():
def retry_find(func):
def wrapped(*args, **kwargs):
+ result = None
n_retries = 1
while n_retries <= 10:
@@ -24,7 +25,7 @@ def retry_find(func):
get_root().dump()
- return None
+ return result
return wrapped