summaryrefslogtreecommitdiff
path: root/tests/test_coverage.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-01-04 22:50:13 +0100
committerGeorg Brandl <georg@python.org>2011-01-04 22:50:13 +0100
commit66816e857e487e1803ed75bb5b39b8f534a79f37 (patch)
tree4767323cbbd6292ff777fafffb6c9514f3c95cd4 /tests/test_coverage.py
parent0d457902e9b984778ad8038178ed9da65bfb9954 (diff)
downloadsphinx-66816e857e487e1803ed75bb5b39b8f534a79f37.tar.gz
Add an option for the coverage builder if source-undocumented items are matched.
Diffstat (limited to 'tests/test_coverage.py')
-rw-r--r--tests/test_coverage.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_coverage.py b/tests/test_coverage.py
index 4d822891..c554c52c 100644
--- a/tests/test_coverage.py
+++ b/tests/test_coverage.py
@@ -27,6 +27,8 @@ def test_build(app):
assert ' * function\n' not in py_undoc # these two are documented
assert ' * Class\n' not in py_undoc # in autodoc.txt
+ assert ' * mod -- No module named mod' # in the "failed import" section
+
c_undoc = (app.outdir / 'c.txt').text()
assert c_undoc.startswith('Undocumented C API elements\n'
'===========================\n')