Skip to content

Commit

Permalink
Unpin numpy version
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Nov 21, 2023
1 parent 4c4792e commit 6d508d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/requirements.txt
Expand Up @@ -3,7 +3,7 @@ coverage>=5.1
coverage-pyver-pragma>=0.2.1
html5lib>=1.1
importlib-metadata>=3.6.0
numpy~=1.24.0; python_version >= "3.8"
numpy>=1.24.0; python_version >= "3.8"
pytest>=6.0.0
pytest-cov>=2.8.1
pytest-datafiles>=2.0
Expand Down
7 changes: 5 additions & 2 deletions tests/test_core.py
Expand Up @@ -33,9 +33,12 @@ def test_get_sphinx_doc_url():
with pytest.raises(ValueError, match="Documentation URL not found in data from PyPI."):
get_sphinx_doc_url("sphinx-prompt")

if sys.version_info < (3, 8):
if sys.version_info[:2] not in {(3, 6), (3, 8)}:
# Latest numpy's "Documentation" url doesn't point to Sphinx docs.
with pytest.raises(ValueError):
with pytest.raises(
ValueError,
match="objects.inv not found at url https://numpy.org/doc/objects.inv: HTTP Status 404."
):
get_sphinx_doc_url("numpy")
else:
assert re.match(r"https://numpy\.org/doc/1\.\d\d/", get_sphinx_doc_url("numpy"))
Expand Down

0 comments on commit 6d508d0

Please sign in to comment.