jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/451827 )
Change subject: TestLogentriesBase._test_logevent: Fix the HiddenKeyError error message regex ......................................................................
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(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
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)
pywikibot-commits@lists.wikimedia.org