Skip to content

Commit a96a5df

Browse files
committed
Merge branch 'master' into more-linalg2
2 parents 1220d6e + 295ee69 commit a96a5df

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

array_api_tests/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def _from_dtype(*a, **kw):
4141
pass
4242

4343

44-
xps = array_api.make_strategies_namespace(_xp)
44+
xps = array_api.make_strategies_namespace(_xp, api_version="2021.12")
4545

4646

4747
from . import _version

array_api_tests/stubs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@
3636
if n != "__init__" # probably exists for Sphinx
3737
]
3838
array_attributes = [
39-
n for n, f in inspect.getmembers(array, predicate=lambda x: not inspect.isfunction(x))
40-
if n != "__init__" # probably exists for Sphinx
39+
n for n, f in inspect.getmembers(array, predicate=lambda x: isinstance(x, property))
4140
]
4241

4342
category_to_funcs: Dict[str, List[FunctionType]] = {}

array_api_tests/test_creation_functions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,9 @@ def test_linspace(num, dtype, endpoint, data):
445445
# avoid overflow errors
446446
assume(not xp.isnan(xp.asarray(stop - start, dtype=_dtype)))
447447
assume(not xp.isnan(xp.asarray(start - stop, dtype=_dtype)))
448+
# avoid generating very large distances
449+
# https://github.com/data-apis/array-api-tests/issues/125
450+
assume(abs(stop - start) < dh.dtype_ranges[dtype].max)
448451

449452
kw = data.draw(
450453
hh.specified_kwargs(

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
pytest
22
pytest-json-report
3-
hypothesis>=6.45.0
3+
hypothesis>=6.55.0
44
ndindex>=1.6

0 commit comments

Comments
 (0)