From 083b0b5207752ee605d6bc224a243bd716814189 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sun, 6 Feb 2022 23:09:21 +0900 Subject: [PATCH] The latest docutils converts :pep: role to the "https" URL docutils-0.19 (unreleased) generates "https" URL from :pep: role. --- tests/test_markup.py | 13 +++++++------ 1 file 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 ('

PEP 8

'), - ('\\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">PEP 8

'), + (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