summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-01-17 19:21:04 +0100
committerGeorg Brandl <georg@python.org>2010-01-17 19:21:04 +0100
commitd640630d580aef603fed3e1dd6dfd15703a243f8 (patch)
tree0b66c66d6cb58b62a10c9cb661d46e81a8f69de0 /tests
parente3c024368288af42630cf3e5f838c2c977e71a98 (diff)
downloadsphinx-d640630d580aef603fed3e1dd6dfd15703a243f8.tar.gz
Fix some XXXes.
Diffstat (limited to 'tests')
-rw-r--r--tests/root/conf.py3
-rw-r--r--tests/test_coverage.py3
2 files changed, 2 insertions, 4 deletions
diff --git a/tests/root/conf.py b/tests/root/conf.py
index d8e5de64..71f48ce6 100644
--- a/tests/root/conf.py
+++ b/tests/root/conf.py
@@ -51,8 +51,7 @@ latex_additional_files = ['svgimg.svg']
value_from_conf_py = 84
coverage_c_path = ['special/*.h']
-# XXX cfunction?
-coverage_c_regexes = {'cfunction': r'^PyAPI_FUNC\(.*\)\s+([^_][\w_]+)'}
+coverage_c_regexes = {'function': r'^PyAPI_FUNC\(.*\)\s+([^_][\w_]+)'}
autosummary_generate = ['autosummary']
diff --git a/tests/test_coverage.py b/tests/test_coverage.py
index 94b45eb8..1262ebf5 100644
--- a/tests/test_coverage.py
+++ b/tests/test_coverage.py
@@ -36,8 +36,7 @@ def test_build(app):
undoc_py, undoc_c = pickle.loads((app.outdir / 'undoc.pickle').text())
assert len(undoc_c) == 1
# the key is the full path to the header file, which isn't testable
- # XXX this should fail right now
- assert undoc_c.values()[0] == [('cfunction', 'Py_SphinxTest')]
+ assert undoc_c.values()[0] == [('function', 'Py_SphinxTest')]
assert 'test_autodoc' in undoc_py
assert 'funcs' in undoc_py['test_autodoc']