jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/610288 )

Change subject: [cleanup] remove test for Page.isEmpty()
......................................................................

[cleanup] remove test for Page.isEmpty()

Page.isEmpty() is deprecated for 5 years. No tests needed for this
outdated method.

Change-Id: I5f0dc07933397d397e771235ee4519253cea6574
---
M tests/page_tests.py
1 file changed, 0 insertions(+), 4 deletions(-)

Approvals:
  Matěj Suchánek: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/tests/page_tests.py b/tests/page_tests.py
index 8a3ccbb..b20b4e5 100644
--- a/tests/page_tests.py
+++ b/tests/page_tests.py
@@ -459,10 +459,6 @@
         self.assertIsInstance(mainpage.isIpEdit(), bool)
         self.assertIsInstance(mainpage.exists(), bool)
         self.assertIsInstance(mainpage.isRedirectPage(), bool)
-        with suppress_warnings(
-                r'pywikibot\.page\.BasePage\.isEmpty is deprecated[\s\w]+; '
-                r'use interwiki\.page_empty_check\(page\) instead\.'):
-            self.assertIsInstance(mainpage.isEmpty(), bool)
         self.assertIsInstance(mainpage.isDisambig(), bool)
         self.assertIsInstance(mainpage.has_permission(), bool)
         self.assertIsInstance(mainpage.botMayEdit(), bool)

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/610288
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I5f0dc07933397d397e771235ee4519253cea6574
Gerrit-Change-Number: 610288
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Matěj Suchánek <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to