Skip to content

Commit

Permalink
fix one more test harness
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjj committed May 31, 2020
1 parent 460c1d2 commit 4116a9c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/lax_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2764,8 +2764,9 @@ def f2(x, y):
expected = onp.array(0.0)
self.assertAllClose(ans, expected, check_dtypes=False)

with self.assertRaises(TypeError):
lax.stop_gradient(lambda x: x)
with core.skip_checks():
with self.assertRaises(TypeError):
lax.stop_gradient(lambda x: x)

# TODO(mattjj): make this a more systematic test
def testRemainder(self):
Expand Down

0 comments on commit 4116a9c

Please sign in to comment.