Skip to content

Commit 8745c58

Browse files
committed
rename varibale
1 parent 0dd79c0 commit 8745c58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/third_party/cupy/math_tests/test_rounding.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ def check_unary_complex_unsupported(self, name, dtype):
2626
for xp in (numpy, cupy):
2727
a = testing.shaped_arange((2, 3), xp, dtype)
2828
if xp == cupy and name in ["ceil", "floor", "trunc"]:
29-
Error = ValueError
29+
Exception = ValueError
3030
else:
31-
Error = TypeError
32-
with pytest.raises(Error):
31+
Exception = TypeError
32+
with pytest.raises(Exception):
3333
getattr(xp, name)(a)
3434

3535
@testing.for_dtypes(["?", "b", "h", "i", "q", "e", "f", "d"])

0 commit comments

Comments
 (0)