Skip to content

Commit 9d2bf25

Browse files
committed
Don't completely fail the signatures tests for libraries without bool
1 parent 8efc295 commit 9d2bf25

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

array_api_tests/test_signatures.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import pytest
44

5-
from ._array_module import mod, mod_name, ones, eye, float64, bool, int64
5+
from ._array_module import mod, mod_name, ones, eye, float64, bool, int64, _UndefinedStub
66
from .pytest_helpers import raises, doesnt_raise
77
from . import dtype_helpers as dh
88

@@ -67,7 +67,6 @@ def example_argument(arg, func_name, dtype):
6767
axis2=2,
6868
axis=1,
6969
axes=(2, 1, 0),
70-
condition=ones((1, 3, 3), dtype=bool),
7170
copy=True,
7271
correction=1.0,
7372
descending=True,
@@ -116,6 +115,8 @@ def example_argument(arg, func_name, dtype):
116115
x2=ones((1, 3, 3), dtype=dtype),
117116
x=ones((1, 3, 3), dtype=dtype),
118117
)
118+
if not isinstance(bool, _UndefinedStub):
119+
known_args['condition'] = ones((1, 3, 3), dtype=bool),
119120

120121
if arg in known_args:
121122
# Special cases:

0 commit comments

Comments
 (0)