summaryrefslogtreecommitdiff
path: root/tests/test_build_html.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2022-03-19 22:58:15 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2022-03-19 22:58:15 +0900
commitaa1bc83c2ac9357b39048b555c3fdb0efff3449c (patch)
treec1149670ca18b5f9820505322d5b0a5832395ea4 /tests/test_build_html.py
parent759a526b12213c59d6ae4c8f66682f4328b764f4 (diff)
parent017ef6118b4fe588140266ad6ff2393cbddd9137 (diff)
downloadsphinx-git-aa1bc83c2ac9357b39048b555c3fdb0efff3449c.tar.gz
Merge branch '4.x'
Diffstat (limited to 'tests/test_build_html.py')
-rw-r--r--tests/test_build_html.py14
1 files changed, 3 insertions, 11 deletions
diff --git a/tests/test_build_html.py b/tests/test_build_html.py
index cb8f347b7..0e9a8ff63 100644
--- a/tests/test_build_html.py
+++ b/tests/test_build_html.py
@@ -1,12 +1,4 @@
-"""
- test_build_html
- ~~~~~~~~~~~~~~~
-
- Test the HTML builder and check output against XPath.
-
- :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
- :license: BSD, see LICENSE for details.
-"""
+"""Test the HTML builder and check output against XPath."""
import os
import re
@@ -220,9 +212,9 @@ def test_html4_output(app, status, warning):
(".//li/p/code/span[@class='pre']", '^a/$'),
(".//li/p/code/em/span[@class='pre']", '^varpart$'),
(".//li/p/code/em/span[@class='pre']", '^i$'),
- (".//a[@href='https://www.python.org/dev/peps/pep-0008']"
+ (".//a[@href='https://peps.python.org/pep-0008']"
"[@class='pep reference external']/strong", 'PEP 8'),
- (".//a[@href='https://www.python.org/dev/peps/pep-0008']"
+ (".//a[@href='https://peps.python.org/pep-0008']"
"[@class='pep reference external']/strong",
'Python Enhancement Proposal #8'),
(".//a[@href='https://datatracker.ietf.org/doc/html/rfc1.html']"