message: Add test case for exception handling in `tf.histogram_fixed_width_bins`
diff: @@ -21,6 +21,7 @@ from __future__ import print_function
  import numpy as np
  from tensorflow.python.framework import dtypes
  +from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import test_util
  from tensorflow.python.framework import constant_op
  from tensorflow.python.ops import array_ops
  @@ -79,6 +80,16 @@ class BinValuesFixedWidth(test.TestCase):
  self.assertEqual(dtypes.int32, bins.dtype)
  self.assertAllClose(expected_bins, self.evaluate(bins))
  + def test_range_overlap(self):
  + # GitHub issue 29661
  + value_range = np.float32([0.0, 0.0])
  + values = np.float32([-1.0, 0.0, 1.5, 2.0, 5.0, 15])
  + expected_bins = [0, 0, 4, 4, 4, 4]
  + with self.assertRaises(errors_impl.InvalidArgumentError):
  + with self.cached_session():
  + _ = histogram_ops.histogram_fixed_width_bins(
  + values, value_range, nbins=5)
  +
  class HistogramFixedWidthTest(test.TestCase):
  