jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/667544 )
Change subject: [tests] Update DeprecationWarning of page_exists tests in site_tests.py ......................................................................
[tests] Update DeprecationWarning of page_exists tests in site_tests.py
Change-Id: Id848aa848dbc938c941cd80a8597d381038198d2 --- M tests/site_tests.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/site_tests.py b/tests/site_tests.py index 39274a5..6535c63 100644 --- a/tests/site_tests.py +++ b/tests/site_tests.py @@ -307,7 +307,7 @@ """Test ApiSite methods for getting page-specific info.""" mysite = self.get_site() mainpage = self.get_mainpage() - with suppress_warnings('pywikibot.site.APISite.page_exists', + with suppress_warnings('pywikibot.site._apisite.APISite.page_exists', DeprecationWarning): self.assertIsInstance(mysite.page_exists(mainpage), bool) self.assertIsInstance(mysite.page_restrictions(mainpage), dict)
pywikibot-commits@lists.wikimedia.org