diff options
| author | Georg Brandl <georg@python.org> | 2009-02-19 21:56:34 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2009-02-19 21:56:34 +0100 |
| commit | 4c81b055c8bb92c24efa46ab41c5a717893062b8 (patch) | |
| tree | 9afb410c802d9a5837fba87a241cc8c07e4237a2 /tests/util.py | |
| parent | 8e4ef0d585afd2b114c4b99c281ab9bc49c74756 (diff) | |
| download | sphinx-git-4c81b055c8bb92c24efa46ab41c5a717893062b8.tar.gz | |
Added an ``only`` directive that can selectively include text
based on enabled "tags". Tags can be given on the command
line. Also, the current builder output format (e.g. "html" or
"latex") is always a defined tag.
Diffstat (limited to 'tests/util.py')
| -rw-r--r-- | tests/util.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/util.py b/tests/util.py index 5d0b4a980..eeb2720fd 100644 --- a/tests/util.py +++ b/tests/util.py @@ -99,8 +99,9 @@ class TestApp(application.Sphinx): def __init__(self, srcdir=None, confdir=None, outdir=None, doctreedir=None, buildername='html', confoverrides=None, - status=None, warning=None, - freshenv=None, confname='conf.py', cleanenv=False): + status=None, warning=None, freshenv=None, + warningiserror=None, tags=None, + confname='conf.py', cleanenv=False): application.CONFIG_FILENAME = confname @@ -136,10 +137,12 @@ class TestApp(application.Sphinx): warning = ListOutput('stderr') if freshenv is None: freshenv = False + if warningiserror is None: + warningiserror = False application.Sphinx.__init__(self, srcdir, confdir, outdir, doctreedir, buildername, confoverrides, status, warning, - freshenv) + freshenv, warningiserror, tags) def cleanup(self, doctrees=False): AutoDirective._registry.clear() |
