diff options
Diffstat (limited to 'absl/testing/tests/xml_reporter_test.py')
-rwxr-xr-x | absl/testing/tests/xml_reporter_test.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/absl/testing/tests/xml_reporter_test.py b/absl/testing/tests/xml_reporter_test.py index f4a6c2d..a7c3f9d 100755 --- a/absl/testing/tests/xml_reporter_test.py +++ b/absl/testing/tests/xml_reporter_test.py @@ -135,7 +135,8 @@ class TextAndXMLTestResultTest(absltest.TestCase): 'foo', 0, timer) def _assert_match(self, regex, output): - self.assertRegex(output, regex) + fail_msg = 'Expected regex:\n{}\nTo match:\n{}'.format(regex, output) + self.assertRegex(output, regex, fail_msg) def _assert_valid_xml(self, xml_output): try: @@ -786,7 +787,7 @@ class TextAndXMLTestResultTest(absltest.TestCase): 'errors': 0, 'run_time': run_time, 'start_time': re.escape(self._iso_timestamp(start_time),), - 'test_name': re.escape('test_prefix('a (b.c)')'), + 'test_name': re.escape('test_prefix0 ('a (b.c)')'), 'classname': classname, 'status': 'run', 'result': 'completed', |