jenkins-bot merged this change.
TestLogentriesBase._test_logevent: Fix the HiddenKeyError error message regex
Bug: T201664
Change-Id: I6c47ae788301f58ca14ff20416b7a75d79b2ebdf
---
M tests/logentry_tests.py
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/logentry_tests.py b/tests/logentry_tests.py
index d1ecbde..deb98f7 100644
--- a/tests/logentry_tests.py
+++ b/tests/logentry_tests.py
@@ -82,8 +82,8 @@
except HiddenKeyError as e:
self.assertRegex(
str(e),
- "Log entry ([^)]+) has a hidden 'comment' key, and you don't "
- 'have permission to view it.')
+ r"Log entry \([^)]+\) has a hidden 'comment' key and you "
+ r"don't have permission to view it\.")
except KeyError as e:
self.assertRegex(str(e), "Log entry ([^)]+) has no 'comment' key")
self.assertIsInstance(logentry.logid(), int)
To view, visit change 451827. To unsubscribe, or for help writing mail filters, visit settings.