Skip to content

Commit 739a018

Browse files
author
Mathieu
committed
✅ fix numpy error check
1 parent 7dc9e8e commit 739a018

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def test_get_sphinx_doc_url():
2424
with pytest.raises(ValueError, match="Documentation URL not found in data from PyPI."):
2525
get_sphinx_doc_url("slumber")
2626

27-
with pytest.raises(ValueError, match="objects.inv not found at url .*: HTTP Status 404"):
27+
with pytest.raises(ValueError, match="Documentation URL not found in data from PyPI."):
2828
get_sphinx_doc_url("autodoc_pydantic")
2929

3030
assert cache.clear(get_sphinx_doc_url)
@@ -37,7 +37,7 @@ def test_get_sphinx_doc_url():
3737
# Latest numpy's "Documentation" url doesn't point to Sphinx docs.
3838
with pytest.raises(
3939
ValueError,
40-
match="objects.inv not found at url https://numpy.org/doc/objects.inv: HTTP Status 404."
40+
match="Documentation URL not found in data from PyPI."
4141
):
4242
get_sphinx_doc_url("numpy")
4343
else:

0 commit comments

Comments
 (0)