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