diff --git a/tests/test_markup.py b/tests/test_markup.py index 39ad62784b3..00c3ac16880 100644 --- a/tests/test_markup.py +++ b/tests/test_markup.py @@ -148,26 +148,24 @@ def get(name): # pep role 'verify_re', ':pep:`8`', - # since docutils-0.19, :pep: role points to python.org via https schema ('

PEP 8

'), + 'href="https://peps.python.org/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'!PEP 8@\\spxentry{PEP 8}}\\sphinxhref{https://peps.python.org/pep-0008}' r'{\\sphinxstylestrong{PEP 8}}') ), ( # pep role with anchor 'verify_re', ':pep:`8#id1`', - # since docutils-0.19, :pep: role points to python.org via https schema ('

' + 'href="https://peps.python.org/pep-0008#id1">' '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'{https://peps.python.org/pep-0008\\#id1}' r'{\\sphinxstylestrong{PEP 8\\#id1}}') ), (