summaryrefslogtreecommitdiff
path: root/tests/test_intl.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2021-04-09 01:35:46 +0900
committerGitHub <noreply@github.com>2021-04-09 01:35:46 +0900
commitce5d66e618c111b115a9bb7b1401a26483fcfa8f (patch)
tree9dbc41be360599c590ceaedebafbf89abdcd092d /tests/test_intl.py
parentdfc0a2879e520b14242ca5e38c75a0de0870087b (diff)
parent5604f9c420c28b95c9e0e9c3a3656cb70f6ab060 (diff)
downloadsphinx-git-ce5d66e618c111b115a9bb7b1401a26483fcfa8f.tar.gz
Merge pull request #9053 from tk0miya/title_node_for_toctree_caption
Fix #8870: Use title node for the caption of toctree
Diffstat (limited to 'tests/test_intl.py')
-rw-r--r--tests/test_intl.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/test_intl.py b/tests/test_intl.py
index 8b22bc912..bb493c2f3 100644
--- a/tests/test_intl.py
+++ b/tests/test_intl.py
@@ -622,11 +622,8 @@ def test_html_meta(app):
assert expected_expr in result
expected_expr = '<meta content="I18N, SPHINX, MARKUP" name="keywords" />'
assert expected_expr in result
- if docutils.__version_info__ < (0, 17):
- expected_expr = '<p class="caption"><span class="caption-text">HIDDEN TOC</span></p>'
- assert expected_expr in result
- else:
- expected_expr = '<p><span class="caption-text">HIDDEN TOC</span></p>'
+ expected_expr = '<p class="caption"><span class="caption-text">HIDDEN TOC</span></p>'
+ assert expected_expr in result
@sphinx_intl