summaryrefslogtreecommitdiff
path: root/tests/test_util_rst.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-01-28 18:58:58 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-01-28 18:58:58 +0900
commit321b3d49cbf67e665e6fdcf6bc7df673e21a1221 (patch)
tree222b21300e009bc8c47f3b5d1f60cea9550c5023 /tests/test_util_rst.py
parent01caa52355c276fb0e9c2ab31c5321f63c8bba74 (diff)
downloadsphinx-git-321b3d49cbf67e665e6fdcf6bc7df673e21a1221.tar.gz
Fix #3952: apidoc: module header is too escaped
Diffstat (limited to 'tests/test_util_rst.py')
-rw-r--r--tests/test_util_rst.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_util_rst.py b/tests/test_util_rst.py
index 406ea710e..07b9174cc 100644
--- a/tests/test_util_rst.py
+++ b/tests/test_util_rst.py
@@ -14,3 +14,5 @@ from sphinx.util.rst import escape
def test_escape():
assert escape(':ref:`id`') == r'\:ref\:\`id\`'
assert escape('footnote [#]_') == r'footnote \[\#\]\_'
+ assert escape('sphinx.application') == r'sphinx.application'
+ assert escape('.. toctree::') == r'\.. toctree\:\:'