From 6fd82802c115091686f5c6a70964eea63d4f2d74 Mon Sep 17 00:00:00 2001 From: Pavithra Vijay Date: Wed, 21 Aug 2019 17:18:19 -0700 Subject: [PATCH] Updating regex in test case to a more stable one with inline dotall flag. PiperOrigin-RevId: 264728568 --- tensorflow/python/keras/callbacks_test.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tensorflow/python/keras/callbacks_test.py b/tensorflow/python/keras/callbacks_test.py index 7070a91cee0..5bf888f99b3 100644 --- a/tensorflow/python/keras/callbacks_test.py +++ b/tensorflow/python/keras/callbacks_test.py @@ -310,10 +310,8 @@ class KerasCallbacksTest(keras_parameterized.TestCase): x = np.ones((100, 3)) y = np.zeros((100, 2)) expected_log = ( - r'.*1/2\n' - r'.*80/80.*- loss:.*- my_acc:.*- val_loss:.*- val_my_acc:.*\n' - r'.*2/2\n' - r'.*80/80.*- loss:.*- my_acc:.*- val_loss:.*- val_my_acc:.*') + r'(?s).*1/2.*80/80.*- loss:.*- my_acc:.*- val_loss:.*- val_my_acc:' + r'.*2/2.*80/80.*- loss:.*- my_acc:.*- val_loss:.*- val_my_acc:.*') with self.captureWritesToStream(sys.stdout) as printed: model.fit(x, y, batch_size=10, epochs=2, validation_split=0.2)