aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/framework/error_interpolation_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/python/framework/error_interpolation_test.py')
-rw-r--r--tensorflow/python/framework/error_interpolation_test.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tensorflow/python/framework/error_interpolation_test.py b/tensorflow/python/framework/error_interpolation_test.py
index d312b825d2..1b77548592 100644
--- a/tensorflow/python/framework/error_interpolation_test.py
+++ b/tensorflow/python/framework/error_interpolation_test.py
@@ -184,9 +184,14 @@ class InterpolateFilenamesAndLineNumbersTest(test.TestCase):
interpolated_string = error_interpolation.interpolate(
two_tags_with_seps, self.graph)
expected_regex = (
- r"^;;;.*constant_op.py:[0-9]+\) ,,,.*constant_op.py:[0-9]*\) ;;;$")
+ r"^;;;.*constant_op.py:[0-9]+\) ,,,.*constant_op.py:[0-9]+\) ;;;$")
self.assertRegexpMatches(interpolated_string, expected_regex)
+ def testNewLine(self):
+ newline = "\n\n{{node One}}"
+ interpolated_string = error_interpolation.interpolate(newline, self.graph)
+ self.assertRegexpMatches(interpolated_string, "constant_op.py:[0-9]+.*")
+
class InterpolateDeviceSummaryTest(test.TestCase):