summaryrefslogtreecommitdiff
path: root/tests/test_domain_std.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-01-08 01:37:53 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-01-08 01:37:53 +0900
commitaf2a3c0ddeb2f81c8f685e4d266adefc749a2642 (patch)
treef4b5f634fcc3e2315bf5eedaceed11a16ba0ff14 /tests/test_domain_std.py
parent92a204284b98510b3bfdd2a6391e9855c564a6a0 (diff)
parent8e1cbd24c61934df7eb426aad0dc48830789b096 (diff)
downloadsphinx-git-af2a3c0ddeb2f81c8f685e4d266adefc749a2642.tar.gz
Merge branch '2.0'
Diffstat (limited to 'tests/test_domain_std.py')
-rw-r--r--tests/test_domain_std.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_domain_std.py b/tests/test_domain_std.py
index 93504c482..adde491c4 100644
--- a/tests/test_domain_std.py
+++ b/tests/test_domain_std.py
@@ -264,6 +264,16 @@ def test_glossary_alphanumeric(app):
assert ("/", "/", "term", "index", "term-0", -1) in objects
+def test_glossary_conflicted_labels(app):
+ text = (".. _term-foo:\n"
+ ".. glossary::\n"
+ "\n"
+ " foo\n")
+ restructuredtext.parse(app, text)
+ objects = list(app.env.get_domain("std").get_objects())
+ assert ("foo", "foo", "term", "index", "term-0", -1) in objects
+
+
def test_cmdoption(app):
text = (".. program:: ls\n"
"\n"