summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJeff Dairiki <dairiki@dairiki.org>2012-02-26 07:49:07 -0800
committerJeff Dairiki <dairiki@dairiki.org>2012-02-26 07:49:07 -0800
commit027d18cd01e0a796686aec62a4c7254be251ef17 (patch)
tree12619273573e62cda3cc6c2b67e34b41a345de07 /tests
parent20b2e83873d49b4dd7b5a237885395a977981f35 (diff)
downloadsphinx-027d18cd01e0a796686aec62a4c7254be251ef17.tar.gz
Intersphinx: parse inventories correctly when object names contain embedded spaces.
This is an issue, e.g., for (multi-word) glossary terms.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_intersphinx.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/test_intersphinx.py b/tests/test_intersphinx.py
index e1f4e827..55320eae 100644
--- a/tests/test_intersphinx.py
+++ b/tests/test_intersphinx.py
@@ -43,6 +43,7 @@ module1 py:module 0 foo.html#module-module1 Long Module desc
module2 py:module 0 foo.html#module-$ -
module1.func py:function 1 sub/foo.html#$ -
CFunc c:function 2 cfunc.html#CFunc -
+a term std:term -1 glossary.html#term-a-term -
'''.encode('utf-8'))
@@ -76,6 +77,8 @@ def test_read_inventory_v2():
assert invdata1['py:function']['module1.func'][2] == \
'/util/sub/foo.html#module1.func'
assert invdata1['c:function']['CFunc'][2] == '/util/cfunc.html#CFunc'
+ assert invdata1['std:term']['a term'][2] == \
+ '/util/glossary.html#term-a-term'
@with_app(confoverrides={'extensions': 'sphinx.ext.intersphinx'})