message: Ensure that the 2 data types chosen by the test are both valid for the device
diff: @@ -325,17 +325,20 @@ class TensorArrayTest(xla_test.XLATestCase):
  ta.write(-1, np.int32(7)).flow.eval()
  def testTensorArrayReadWrongIndexOrDataTypeFails(self):
  + if len(self.float_types) > 1:
  + dtype1 = self.float_types[0]
  + dtype2 = self.float_types[1]
  with self.test_session(), self.test_scope():
  ta = tensor_array_ops.TensorArray(
  - dtype=dtypes.float32, tensor_array_name="foo", size=3)
  + dtype=dtype1, tensor_array_name="foo", size=3)
  w0 = ta.write(0, [[4.0, 5.0]])
  # Test reading wrong datatype
  r0_bad = gen_data_flow_ops._tensor_array_read_v3(
  - handle=w0.handle, index=0, dtype=dtypes.float64, flow_in=w0.flow)
  + handle=w0.handle, index=0, dtype=dtype2, flow_in=w0.flow)
  with self.assertRaisesOpError(
  - "TensorArray dtype is float but op has dtype double."):
  + "TensorArray dtype is \c+ but op has dtype \c+."):
  r0_bad.eval()
  # Test reading from a different index than the one we wrote to
  