diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2022-02-13 19:22:17 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2022-02-13 19:22:17 +0900 |
commit | 9d29adb76c0abb906037979b02894e13fd677ece (patch) | |
tree | 9eff94236efacd4be22e7de5fcbc4301d68dbee7 /tests | |
parent | 083b0b5207752ee605d6bc224a243bd716814189 (diff) | |
download | sphinx-git-9d29adb76c0abb906037979b02894e13fd677ece.tar.gz |
The latest docutils converts :pep: role to the "https" URL (again)
docutils-0.19 (unreleased) generates "https" URL from :pep: role.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_markup.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/test_markup.py b/tests/test_markup.py index 2a97fdc98..dbd0f0272 100644 --- a/tests/test_markup.py +++ b/tests/test_markup.py @@ -166,16 +166,17 @@ def get_verifier(verify, verify_re): ), ( # pep role with anchor - '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="http://www.python.org/dev/peps/pep-0008#id1">' + 'href="https?://www.python.org/dev/peps/pep-0008#id1">' '<strong>PEP 8#id1</strong></a></p>'), - ('\\sphinxAtStartPar\n' - '\\index{Python Enhancement Proposals@\\spxentry{Python Enhancement Proposals}' - '!PEP 8\\#id1@\\spxentry{PEP 8\\#id1}}\\sphinxhref' - '{http://www.python.org/dev/peps/pep-0008\\#id1}' - '{\\sphinxstylestrong{PEP 8\\#id1}}') + (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'{\\sphinxstylestrong{PEP 8\\#id1}}') ), ( # rfc role |