Skip to content

Commit 37e9adb

Browse files
committed
Update test_boolean_assignment_value_mismatch expected errors
1 parent c51d6cc commit 37e9adb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

torch_np/tests/numpy_tests/core/test_indexing.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,9 @@ def test_boolean_assignment_value_mismatch(self):
237237
def f(a, v):
238238
a[a > -1] = v
239239

240-
assert_raises((ValueError, RuntimeError), f, a, [])
241-
assert_raises((ValueError, RuntimeError), f, a, [1, 2, 3])
242-
assert_raises((ValueError, RuntimeError), f, a[:1], [1, 2, 3])
240+
assert_raises((ValueError, TypeError), f, a, [])
241+
assert_raises((ValueError, TypeError), f, a, [1, 2, 3])
242+
assert_raises((ValueError, TypeError), f, a[:1], [1, 2, 3])
243243

244244
def test_boolean_indexing_twodim(self):
245245
# Indexing a 2-dimensional array with

0 commit comments

Comments
 (0)