diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-09-22 15:03:12 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-09-22 15:24:14 +0900 |
commit | c0fffb9e8bbe64f766da691e55ced4c16197d402 (patch) | |
tree | 7b3c830577914baaa067cc48dcb8deef6922c51d /tests/test_domain_py.py | |
parent | a2748f787c5f9ba0d860719be59d80d08e14b3e9 (diff) | |
download | sphinx-git-c0fffb9e8bbe64f766da691e55ced4c16197d402.tar.gz |
Fix #5432: py domain: :type: field can't process :term: references
Diffstat (limited to 'tests/test_domain_py.py')
-rw-r--r-- | tests/test_domain_py.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_domain_py.py b/tests/test_domain_py.py index 8e93986fa..44205f539 100644 --- a/tests/test_domain_py.py +++ b/tests/test_domain_py.py @@ -113,7 +113,10 @@ def test_domain_py_xrefs(app, status, warning): assert_refnode(refnodes[9], False, False, 'str', 'class') assert_refnode(refnodes[10], False, False, 'float', 'class') assert_refnode(refnodes[11], False, False, 'list', 'class') - assert len(refnodes) == 12 + assert_refnode(refnodes[11], False, False, 'list', 'class') + assert_refnode(refnodes[12], False, False, 'ModTopLevel', 'class') + assert_refnode(refnodes[13], False, False, 'index', 'doc', domain='std') + assert len(refnodes) == 14 doctree = app.env.get_doctree('module_option') refnodes = list(doctree.traverse(addnodes.pending_xref)) |