Skip to content

Commit

Permalink
Remove the copybara replacement of the error message.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 565170171
  • Loading branch information
xiaoyux11 authored and tensorflow-copybara committed Sep 13, 2023
1 parent 4a28765 commit 374d186
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ def test_scalar_getitem_fails(self, value):
value = tf.convert_to_tensor(value)
tensor_variable = variable_utils.TensorVariable(value)
with self.assertRaisesRegex(
tf.errors.InvalidArgumentError, 'Index out of range'
tf.errors.InvalidArgumentError,
'Attempting to slice scalar input',
):
_ = tensor_variable[0]

Expand Down

0 comments on commit 374d186

Please sign in to comment.