hotfix: filter_too_much (#10308)

This commit is contained in:
wozeparrot 2025-05-14 15:31:51 -07:00 committed by GitHub
commit 9bbc2bc2a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -191,6 +191,7 @@ class TestDTypeALU(unittest.TestCase):
overflow_strat = float_strat.filter(lambda x: x > dtypes.max(unsigned_dtype) and x <= dtypes.max(dtypes.int32))
universal_test_cast(a.draw(overflow_strat), float_dtype, unsigned_dtype)
@settings(suppress_health_check=[HealthCheck.filter_too_much])
@given(strat.data(), strat.sampled_from(dtypes_float), strat.sampled_from((dtypes.uint8, dtypes.uint16)))
def test_float_cast_to_unsigned_underflow(self, a, float_dtype, unsigned_dtype):
if not is_dtype_supported(float_dtype, Device.DEFAULT): float_dtype = dtypes.float32