Skip to content

Commit c2526d1

Browse files
committed
TST: fix tests for result_type(scalars)
1 parent 820788b commit c2526d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: array_api_strict/tests/test_manipulation_functions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
def test_concat_errors():
14-
assert_raises(TypeError, lambda: concat((1, 1), axis=None))
14+
assert_raises((TypeError, ValueError), lambda: concat((1, 1), axis=None))
1515
assert_raises(TypeError, lambda: concat([asarray([1], dtype=int8),
1616
asarray([1], dtype=float64)]))
1717

Diff for: array_api_strict/tests/test_validation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def p(func: Callable, *args, **kwargs):
1818
[
1919
p(xp.can_cast, 42, xp.int8),
2020
p(xp.can_cast, xp.int8, 42),
21-
p(xp.result_type, 42),
21+
p(xp.result_type, "42"),
2222
],
2323
)
2424
def test_raises_on_invalid_types(func, args, kwargs):

0 commit comments

Comments
 (0)