jenkins-bot merged this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
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.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I6c47ae788301f58ca14ff20416b7a75d79b2ebdf
Gerrit-Change-Number: 451827
Gerrit-PatchSet: 2
Gerrit-Owner: Dalba <dalba.wiki@gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb@gmail.com>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: Zoranzoki21 <zorandori4444@gmail.com>
Gerrit-Reviewer: jenkins-bot (75)