Skip to content

Commit

Permalink
Remove numpy mark and add np guard to test
Browse files Browse the repository at this point in the history
  • Loading branch information
raulcd authored and pitrou committed Sep 2, 2024
1 parent a4e094c commit eaabab7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions python/pyarrow/tests/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,))
Expand Down

0 comments on commit eaabab7

Please sign in to comment.