diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2022-02-13 12:44:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-13 12:44:55 +0300 |
commit | b07ca9dbcc43f344f4aa15b970c0ce708f7b36a8 (patch) | |
tree | 337d224c97d5c385f064c57ed6b3fa925f837200 /tests | |
parent | 71b1c12167f22276f5fbf787d8b0f6ee077ec556 (diff) | |
parent | 083b0b5207752ee605d6bc224a243bd716814189 (diff) |
Merge pull request #10170 from tk0miya/https_pep_role
The latest docutils converts :pep: role to the "https" URL
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_markup.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/tests/test_markup.py b/tests/test_markup.py index e1e01491a..2a97fdc98 100644 --- a/tests/test_markup.py +++ b/tests/test_markup.py @@ -154,14 +154,15 @@ def get_verifier(verify, verify_re): @pytest.mark.parametrize('type,rst,html_expected,latex_expected', [ ( # pep role - '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="http://www.python.org/dev/peps/pep-0008"><strong>PEP 8</strong></a></p>'), - ('\\sphinxAtStartPar\n' - '\\index{Python Enhancement Proposals@\\spxentry{Python Enhancement Proposals}' - '!PEP 8@\\spxentry{PEP 8}}\\sphinxhref{http://www.python.org/dev/peps/pep-0008}' - '{\\sphinxstylestrong{PEP 8}}') + 'href="https?://www.python.org/dev/peps/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'{\\sphinxstylestrong{PEP 8}}') ), ( # pep role with anchor |