message: String formatting in assertAllEqual() fails in Python 3 because bytestring may
  be converted using %s. Use %r to fix this.
diff: @@ -2686,7 +2686,7 @@ class TensorFlowTestCase(googletest.TestCase):
  if (b.ndim <= 3 or b.size < 500):
  self.assertEqual(
  a.shape, b.shape, "Shape mismatch: expected %s, got %s."
  - " Contents: %s. \n%s." % (a.shape, b.shape, b, msg))
  + " Contents: %r. \n%s." % (a.shape, b.shape, b, msg))
  else:
  self.assertEqual(
  a.shape, b.shape, "Shape mismatch: expected %s, got %s."
  @@ -2709,8 +2709,8 @@ class TensorFlowTestCase(googletest.TestCase):
  else:
  # np.where is broken for scalars
  x, y = a, b
  - msgs.append("not equal lhs = {}".format(x))
  - msgs.append("not equal rhs = {}".format(y))
  + msgs.append("not equal lhs = %r" % x)
  + msgs.append("not equal rhs = %r" % y)
  # With Python 3, we need to make sure the dtype matches between a and b.
  b = b.astype(a.dtype)
  np.testing.assert_array_equal(a, b, err_msg="\n".join(msgs))
  