Skip to content

Commit cd75f8f

Browse files
committed
Merge branch '3.x'
2 parents 06c59d2 + b342300 commit cd75f8f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/roots/test-linkcheck/links.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ This is from CPython documentation.
22

33
* Also, if there is a `default namespace <https://www.w3.org/TR/2006/REC-xml-names-20060816/#defaulting>`__, that full URI gets prepended to all of the non-prefixed tags.
44

5-
* The URL having anchor: `http://www.sphinx-doc.org/en/1.4.8/tutorial.html#install-sphinx`_
5+
* The URL having anchor: `https://www.sphinx-doc.org/en/master/usage/installation.html#overview`_
66

77
Some additional anchors to exercise ignore code
88

99
* `Example Bar invalid <https://www.google.com/#!bar>`_
1010
* `Example Bar invalid <https://www.google.com#!bar>`_ tests that default ignore anchor of #! does not need to be prefixed with /
1111
* `Example Bar invalid <https://www.google.com/#top>`_
12-
* `Example anchor invalid <http://www.sphinx-doc.org/en/1.7/intro.html#does-not-exist>`_
12+
* `Example anchor invalid <http://www.sphinx-doc.org/en/master/index.html#does-not-exist>`_
1313
* `Complete nonsense <https://localhost:7777/doesnotexist>`_
1414
* `Example valid local file <conf.py>`_
1515
* `Example invalid local file <path/to/notfound>`_

tests/test_build_linkcheck.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def test_defaults_json(app):
9797
assert "Anchor 'top' not found" == \
9898
rowsby["https://www.google.com/#top"]["info"]
9999
assert "Anchor 'does-not-exist' not found" == \
100-
rowsby["http://www.sphinx-doc.org/en/1.7/intro.html#does-not-exist"]["info"]
100+
rowsby["http://www.sphinx-doc.org/en/master/index.html#does-not-exist"]["info"]
101101
# images should fail
102102
assert "Not Found for url: https://www.google.com/image.png" in \
103103
rowsby["https://www.google.com/image.png"]["info"]
@@ -108,7 +108,7 @@ def test_defaults_json(app):
108108
confoverrides={'linkcheck_anchors_ignore': ["^!", "^top$"],
109109
'linkcheck_ignore': [
110110
'https://localhost:7777/doesnotexist',
111-
'http://www.sphinx-doc.org/en/1.7/intro.html#',
111+
'http://www.sphinx-doc.org/en/master/index.html#',
112112
'https://www.google.com/image.png',
113113
'https://www.google.com/image2.png',
114114
'path/to/notfound']

0 commit comments

Comments
 (0)