File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ coverage>=5.1
3
3
coverage-pyver-pragma >= 0.2.1
4
4
html5lib >= 1.1
5
5
importlib-metadata >= 3.6.0
6
- numpy ~ =1.24.0 ; python_version >= "3.8"
6
+ numpy > =1.24.0 ; python_version >= "3.8"
7
7
pytest >= 6.0.0
8
8
pytest-cov >= 2.8.1
9
9
pytest-datafiles >= 2.0
Original file line number Diff line number Diff line change @@ -33,9 +33,12 @@ def test_get_sphinx_doc_url():
33
33
with pytest .raises (ValueError , match = "Documentation URL not found in data from PyPI." ):
34
34
get_sphinx_doc_url ("sphinx-prompt" )
35
35
36
- if sys .version_info < (3 , 8 ):
36
+ if sys .version_info [: 2 ] != (3 , 8 ):
37
37
# 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
+ ):
39
42
get_sphinx_doc_url ("numpy" )
40
43
else :
41
44
assert re .match (r"https://numpy\.org/doc/1\.\d\d/" , get_sphinx_doc_url ("numpy" ))
You can’t perform that action at this time.
0 commit comments