Skip to content

Commit

Permalink
tests: Fix markup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Mar 16, 2022
1 parent 30c1d1c commit 4dbe848
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/test_markup.py
Expand Up @@ -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
('<p><span class="target" id="index-0"></span><a class="pep reference external" '
'href="https?://www.python.org/dev/peps/pep-0008"><strong>PEP 8</strong></a></p>'),
'href="https://peps.python.org/pep-0008"><strong>PEP 8</strong></a></p>'),
(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
('<p><span class="target" id="index-0"></span><a class="pep reference external" '
'href="https?://www.python.org/dev/peps/pep-0008#id1">'
'href="https://peps.python.org/pep-0008#id1">'
'<strong>PEP 8#id1</strong></a></p>'),
(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}}')
),
(
Expand Down

0 comments on commit 4dbe848

Please sign in to comment.