Skip to content

Commit 40a3143

Browse files
Replaced expected TypeError with ValueError per code changes
1 parent 3512a49 commit 40a3143

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dpctl/tests/elementwise/test_hyperbolic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def test_hyper_error_dtype(callable, dtype):
187187
x = dpt.ones(5, dtype=dtype)
188188
y = dpt.empty_like(x, dtype="int16")
189189
assert_raises_regex(
190-
TypeError, "Output array of type.*is needed", callable, x, y
190+
ValueError, "Output array of type.*is needed", callable, x, y
191191
)
192192

193193

dpctl/tests/elementwise/test_trigonometric.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def test_trig_error_dtype(callable, dtype):
194194
x = dpt.zeros(5, dtype=dtype)
195195
y = dpt.empty_like(x, dtype="int16")
196196
assert_raises_regex(
197-
TypeError, "Output array of type.*is needed", callable, x, y
197+
ValueError, "Output array of type.*is needed", callable, x, y
198198
)
199199

200200

0 commit comments

Comments
 (0)