Skip to content

Commit

Permalink
Fix polydiv kokoro tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jakevdp committed Apr 13, 2022
1 parent 191c838 commit 34e206a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/lax_numpy_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2885,6 +2885,8 @@ def testPolyMul(self, a1_shape, a2_shape, dtype):
def testPolyDiv(self, a_shape, b_shape, dtype):
rng = jtu.rand_default(self.rng())

@jtu.ignore_warning(category=RuntimeWarning, message="divide by zero.*")
@jtu.ignore_warning(category=RuntimeWarning, message="invalid value.*")
def np_fun(arg1, arg2):
q, r = np.polydiv(arg1, arg2)
while r.size < max(arg1.size, arg2.size): # Pad residual to same size
Expand Down

0 comments on commit 34e206a

Please sign in to comment.