From 9d29adb76c0abb906037979b02894e13fd677ece Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sun, 13 Feb 2022 19:22:17 +0900 Subject: [PATCH] The latest docutils converts :pep: role to the "https" URL (again) docutils-0.19 (unreleased) generates "https" URL from :pep: role. --- tests/test_markup.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tests/test_markup.py b/tests/test_markup.py index 2a97fdc9894..dbd0f0272c9 100644 --- a/tests/test_markup.py +++ b/tests/test_markup.py @@ -166,16 +166,17 @@ def get(name): ), ( # pep role with anchor - 'verify', + 'verify_re', ':pep:`8#id1`', + # since docutils-0.19, :pep: role points to python.org via https schema ('

' + 'href="https?://www.python.org/dev/peps/pep-0008#id1">' 'PEP 8#id1

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