diff options
Diffstat (limited to 'tests/test_markup.py')
-rw-r--r-- | tests/test_markup.py | 18 |
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}}') ), ( |