jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/370641 )
Change subject: [bugfix] Fix assertRaisesRegex call ......................................................................
[bugfix] Fix assertRaisesRegex call
Bug: T172770 Change-Id: I9fb75cf2ee9707a65ebe3a9bf32a4cbf527f030d --- M tests/page_tests.py 1 file changed, 4 insertions(+), 4 deletions(-)
Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved
diff --git a/tests/page_tests.py b/tests/page_tests.py index c6d659c..b4d9a5e 100644 --- a/tests/page_tests.py +++ b/tests/page_tests.py @@ -567,10 +567,10 @@ # for file pages, the API should return the file itself self.assertEqual(image.page_image(), image) else: - self.assertRaises(pywikibot.UnknownExtension, - 'Method "loadpageimage" is not implemented ' - 'without the extension PageImages', - mainpage.page_image) + self.assertRaisesRegex(pywikibot.UnknownExtension, + 'Method "loadpageimage" is not implemented ' + 'without the extension PageImages', + mainpage.page_image)
class TestPageDeprecation(DefaultSiteTestCase, DeprecationTestCase):
pywikibot-commits@lists.wikimedia.org