Skip to content

Commit

Permalink
Merge pull request #187 from jakevdp:test-fix
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 673974000
  • Loading branch information
The ml_dtypes Authors committed Sep 12, 2024
2 parents 4893435 + 74daa1a commit b39b73c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ml_dtypes/tests/custom_float_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,7 @@ def testBinaryPredicateUfunc(self, float_type):
op(x, y), op(x.astype(np.float32), y.astype(np.float32))
)

@ignore_warning(category=RuntimeWarning, message="invalid value encountered")
def testPredicateUfunc(self, float_type):
for op in [np.isfinite, np.isinf, np.isnan, np.signbit, np.logical_not]:
with self.subTest(op.__name__):
Expand Down

0 comments on commit b39b73c

Please sign in to comment.