summaryrefslogtreecommitdiff
path: root/tests/util.py
diff options
context:
space:
mode:
authorTim Martin <tim@asymptotic.co.uk>2011-04-13 00:00:45 +0100
committerTim Martin <tim@asymptotic.co.uk>2011-04-13 00:00:45 +0100
commit70206fb6d021ce0caf5e3bcf278c9383b0927d5d (patch)
treea2cebd7abf47c8111369b258feb1d70efa539ef2 /tests/util.py
parent8547263f65a25f047204b2a85526041604ee4a93 (diff)
downloadsphinx-70206fb6d021ce0caf5e3bcf278c9383b0927d5d.tar.gz
Expanded the docstring of gen_with_app to explain how it differs from with_app
Diffstat (limited to 'tests/util.py')
-rw-r--r--tests/util.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/util.py b/tests/util.py
index 3711de72..f15481e7 100644
--- a/tests/util.py
+++ b/tests/util.py
@@ -194,7 +194,9 @@ def with_app(*args, **kwargs):
def gen_with_app(*args, **kwargs):
"""
Make a TestApp with args and kwargs, pass it to the test and clean up
- properly.
+ properly. The wrapped function is assumed to be a generator and the
+ wrapper function is itself a generator that will iterate over the
+ values of the wrapped function and yield them.
"""
def generator(func):
@wraps(func)