From 87b2b1d2b187c0356b063a3e02d5142b72bb9dd7 Mon Sep 17 00:00:00 2001 From: Guillaume Lemaitre Date: Mon, 3 Apr 2023 16:24:56 +0200 Subject: [PATCH] FIX fix spelling mistake in _NumPyAPIWrapper --- sklearn/utils/tests/test_array_api.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sklearn/utils/tests/test_array_api.py b/sklearn/utils/tests/test_array_api.py index 40c1e3bf97c5e..ab7b988d22ff8 100644 --- a/sklearn/utils/tests/test_array_api.py +++ b/sklearn/utils/tests/test_array_api.py @@ -189,15 +189,15 @@ def test_convert_estimator_to_array_api(): assert hasattr(new_est.X_, "__array_namespace__") -@pytest.mark.parametrize("wrapper", [_ArrayAPIWrapper, _NumPyApiWrapper]) +@pytest.mark.parametrize("wrapper", [_ArrayAPIWrapper, _NumPyAPIWrapper]) def test_get_namespace_array_api_isdtype(wrapper): - """Test isdtype implementation from _ArrayAPIWrapper and _NumPyApiWrapper.""" + """Test isdtype implementation from _ArrayAPIWrapper and _NumPyAPIWrapper.""" if wrapper == _ArrayAPIWrapper: xp_ = pytest.importorskip("numpy.array_api") xp = _ArrayAPIWrapper(xp_) else: - xp = _NumPyApiWrapper() + xp = _NumPyAPIWrapper() assert xp.isdtype(xp.float32, xp.float32) assert xp.isdtype(xp.float32, "real floating") @@ -219,7 +219,7 @@ def test_get_namespace_array_api_isdtype(wrapper): assert not xp.isdtype(xp.float32, "complex floating") - if wrapper == _NumPyApiWrapper: + if wrapper == _NumPyAPIWrapper: assert not xp.isdtype(xp.int8, "complex floating") assert xp.isdtype(xp.complex64, "complex floating") assert xp.isdtype(xp.complex128, "complex floating")