Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 547f487

Browse filesBrowse files
committed
Enable array API when testing
1 parent 7ec15c8 commit 547f487
Copy full SHA for 547f487

File tree

1 file changed

+2
-1
lines changed
Filter options

1 file changed

+2
-1
lines changed

‎sklearn/utils/tests/test_array_api.py

Copy file name to clipboardExpand all lines: sklearn/utils/tests/test_array_api.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ def test_nan_reductions(library, X, reduction, expected):
179179
"""Check NaN reductions like _nanmin and _nanmax"""
180180
xp = pytest.importorskip(library)
181181

182-
result = reduction(xp.asarray(X))
182+
with config_context(array_api_dispatch=True):
183+
result = reduction(xp.asarray(X))
183184
assert result == expected
184185

185186

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.