Skip to content

Commit

Permalink
fix value error to type error
Browse files Browse the repository at this point in the history
  • Loading branch information
llyyxx0413 committed Sep 19, 2023
1 parent bf8852a commit ff8085e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/legacy_test/test_hypot.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ def test_dygraph(self):
def test_error(self):
x = paddle.to_tensor(self.x_np)
y = 3.8
self.assertRaises(ValueError, paddle.hypot, x, y)
self.assertRaises(ValueError, paddle.hypot, y, x)
self.assertRaises(TypeError, paddle.hypot, x, y)
self.assertRaises(TypeError, paddle.hypot, y, x)


class TestHypotAPIBroadCast(TestHypotAPI):
Expand Down

0 comments on commit ff8085e

Please sign in to comment.