message: Update tests for `tf.clip_by_value`
diff: @@ -19,6 +19,7 @@ from __future__ import division
  from __future__ import print_function
  from tensorflow.python.framework import constant_op
  +from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import clip_ops
  from tensorflow.python.platform import test
  @@ -42,10 +43,12 @@ class ClipTest(test.TestCase):
  x = constant_op.constant([-5.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[2, 3, 1])
  # Use a nonsensical shape.
  clip = constant_op.constant([1.0, 2.0])
  - with self.assertRaises(ValueError):
  - _ = clip_ops.clip_by_value(x, -clip, clip)
  - with self.assertRaises(ValueError):
  - _ = clip_ops.clip_by_value(x, 1.0, clip)
  + with self.assertRaises(errors_impl.InvalidArgumentError):
  + ans = clip_ops.clip_by_value(x, -clip, clip)
  + tf_ans = ans.eval()
  + with self.assertRaises(errors_impl.InvalidArgumentError):
  + ans = clip_ops.clip_by_value(x, 1.0, clip)
  + tf_ans = ans.eval()
  def testClipByValueNonFinite(self):
  with self.test_session():
  