jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/420258 )
Change subject: wikibase_tests.py: Suppress pywikibot.page.Property.getType DeprecationWarning ......................................................................
wikibase_tests.py: Suppress pywikibot.page.Property.getType DeprecationWarning
Change-Id: I26fcc4351f279347649cae8ff1c4fbfaebc6bc14 --- M tests/wikibase_tests.py 1 file changed, 2 insertions(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/wikibase_tests.py b/tests/wikibase_tests.py index c9626fd..f6bb342 100644 --- a/tests/wikibase_tests.py +++ b/tests/wikibase_tests.py @@ -17,7 +17,7 @@ from pywikibot import pagegenerators from pywikibot.page import WikibasePage, ItemPage, PropertyPage, Page from pywikibot.site import Namespace, NamespacesDict -from pywikibot.tools import MediaWikiVersion +from pywikibot.tools import MediaWikiVersion, suppress_warnings
from tests import join_pages_path, mock from tests.aspects import ( @@ -1346,6 +1346,7 @@ with self.assertRaisesRegex(pywikibot.InvalidTitle, regex): PropertyPage(wikidata)
+ @suppress_warnings('pywikibot.page.Property.getType is deprecated') def test_globe_coordinate(self): """Test a coordinate PropertyPage has the correct type.""" wikidata = self.get_repo()
pywikibot-commits@lists.wikimedia.org