summaryrefslogtreecommitdiff
path: root/tests/test_markup.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2022-03-19 22:58:15 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2022-03-19 22:58:15 +0900
commitaa1bc83c2ac9357b39048b555c3fdb0efff3449c (patch)
treec1149670ca18b5f9820505322d5b0a5832395ea4 /tests/test_markup.py
parent759a526b12213c59d6ae4c8f66682f4328b764f4 (diff)
parent017ef6118b4fe588140266ad6ff2393cbddd9137 (diff)
downloadsphinx-git-aa1bc83c2ac9357b39048b555c3fdb0efff3449c.tar.gz
Merge branch '4.x'
Diffstat (limited to 'tests/test_markup.py')
-rw-r--r--tests/test_markup.py18
1 files changed, 5 insertions, 13 deletions
diff --git a/tests/test_markup.py b/tests/test_markup.py
index dbd0f0272..6ec592073 100644
--- a/tests/test_markup.py
+++ b/tests/test_markup.py
@@ -1,12 +1,4 @@
-"""
- test_markup
- ~~~~~~~~~~~
-
- Test various Sphinx-specific markup extensions.
-
- :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
- :license: BSD, see LICENSE for details.
-"""
+"""Test various Sphinx-specific markup extensions."""
import re
@@ -158,10 +150,10 @@ def get_verifier(verify, verify_re):
':pep:`8`',
# since docutils-0.19, :pep: role points to python.org via https schema
('<p><span class="target" id="index-0"></span><a class="pep reference external" '
- 'href="https?://www.python.org/dev/peps/pep-0008"><strong>PEP 8</strong></a></p>'),
+ 'href="https?://(www.python.org/dev/peps|peps.python.org)/pep-0008"><strong>PEP 8</strong></a></p>'),
(r'\\sphinxAtStartPar\n'
r'\\index{Python Enhancement Proposals@\\spxentry{Python Enhancement Proposals}'
- r'!PEP 8@\\spxentry{PEP 8}}\\sphinxhref{https?://www.python.org/dev/peps/pep-0008}'
+ r'!PEP 8@\\spxentry{PEP 8}}\\sphinxhref{https?://(www.python.org/dev/peps|peps.python.org)/pep-0008}'
r'{\\sphinxstylestrong{PEP 8}}')
),
(
@@ -170,12 +162,12 @@ def get_verifier(verify, verify_re):
':pep:`8#id1`',
# since docutils-0.19, :pep: role points to python.org via https schema
('<p><span class="target" id="index-0"></span><a class="pep reference external" '
- 'href="https?://www.python.org/dev/peps/pep-0008#id1">'
+ 'href="https?://(www.python.org/dev/peps|peps.python.org)/pep-0008#id1">'
'<strong>PEP 8#id1</strong></a></p>'),
(r'\\sphinxAtStartPar\n'
r'\\index{Python Enhancement Proposals@\\spxentry{Python Enhancement Proposals}'
r'!PEP 8\\#id1@\\spxentry{PEP 8\\#id1}}\\sphinxhref'
- r'{https?://www.python.org/dev/peps/pep-0008\\#id1}'
+ r'{https?://(www.python.org/dev/peps|peps.python.org)/pep-0008\\#id1}'
r'{\\sphinxstylestrong{PEP 8\\#id1}}')
),
(