From eaabab77a55d0e89a1e0bf0b4ba3a00a185aed7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Cumplido?= Date: Mon, 26 Aug 2024 15:56:56 +0200 Subject: [PATCH] Remove numpy mark and add np guard to test --- python/pyarrow/tests/test_types.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/python/pyarrow/tests/test_types.py b/python/pyarrow/tests/test_types.py index 565a93cd7fa0e..cc680939ac46a 100644 --- a/python/pyarrow/tests/test_types.py +++ b/python/pyarrow/tests/test_types.py @@ -1273,21 +1273,21 @@ def test_is_integer_value(): assert not pa.types.is_integer_value('1') -@pytest.mark.numpy def test_is_float_value(): assert not pa.types.is_float_value(1) assert pa.types.is_float_value(1.) - assert pa.types.is_float_value(np.float64(1)) + if np is not None: + assert pa.types.is_float_value(np.float64(1)) assert not pa.types.is_float_value('1.0') -@pytest.mark.numpy def test_is_boolean_value(): assert not pa.types.is_boolean_value(1) assert pa.types.is_boolean_value(True) assert pa.types.is_boolean_value(False) - assert pa.types.is_boolean_value(np.bool_(True)) - assert pa.types.is_boolean_value(np.bool_(False)) + if np is not None: + assert pa.types.is_boolean_value(np.bool_(True)) + assert pa.types.is_boolean_value(np.bool_(False)) @h.settings(suppress_health_check=(h.HealthCheck.too_slow,))