Skip to content

Commit 871dd14

Browse files
committed
Unpin numpy version
1 parent 4c4792e commit 871dd14

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

tests/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ coverage>=5.1
33
coverage-pyver-pragma>=0.2.1
44
html5lib>=1.1
55
importlib-metadata>=3.6.0
6-
numpy~=1.24.0; python_version >= "3.8"
6+
numpy>=1.24.0; python_version >= "3.8"
77
pytest>=6.0.0
88
pytest-cov>=2.8.1
99
pytest-datafiles>=2.0

tests/test_core.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,12 @@ def test_get_sphinx_doc_url():
3333
with pytest.raises(ValueError, match="Documentation URL not found in data from PyPI."):
3434
get_sphinx_doc_url("sphinx-prompt")
3535

36-
if sys.version_info < (3, 8):
36+
if sys.version_info[:2] != (3, 8):
3737
# Latest numpy's "Documentation" url doesn't point to Sphinx docs.
38-
with pytest.raises(ValueError):
38+
with pytest.raises(
39+
ValueError,
40+
match="objects.inv not found at url https://numpy.org/doc/objects.inv: HTTP Status 404."
41+
):
3942
get_sphinx_doc_url("numpy")
4043
else:
4144
assert re.match(r"https://numpy\.org/doc/1\.\d\d/", get_sphinx_doc_url("numpy"))

0 commit comments

Comments
 (0)