Fix test_ignoreerrors test_internet failure

example.com is returning HTTP code 500.
This commit is contained in:
Chris Mayo 2024-03-19 19:21:29 +00:00
parent 54be64c1e2
commit f1307c9f52

View file

@ -71,7 +71,7 @@ class TestFile(LinkCheckTest):
@need_network
def test_internet(self):
""" Test a few well-known Internet URLs. """
self._test("http://example.com/does-not-exist",
r"^http://example.com/.+$", "^404", True)
self._test("https://linkchecker.github.io/does-not-exist",
r"^https://linkchecker.github.io/.+$", "^404", True)
self._test("http://does-not-exist.example.com",
r"example.com", "^ConnectionError", True)