message: Make sure the gradient_input_output_exclusions_test is resilient to windows line endings.
diff: @@ -34,8 +34,14 @@ class GradientInputOutputExclusionsTest(test.TestCase):
  resource_loader.get_root_dir_with_all_resources(),
  resource_loader.get_path_to_datafile("pywrap_gradient_exclusions.cc"))
  actual_contents = file_io.read_file_to_string(filename)
  +
  + # On windows, one or both of these strings may have CRLF line endings.
  + # To make sure, sanitize both:
  + sanitized_actual_contents = actual_contents.replace("\r", "")
  + sanitized_expected_contents = expected_contents.replace("\r", "")
  +
  self.assertEqual(
  - actual_contents, expected_contents, """
  + sanitized_actual_contents, sanitized_expected_contents, """
  pywrap_gradient_exclusions.cc needs to be updated.
  Please regenerate using:
  bazel run tensorflow/python/eager:gradient_input_output_exclusions -- $PWD/tensorflow/python/eager/pywrap_gradient_exclusions.cc"""
  