jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/845042 )
Change subject: [tests] suppress DeprecationWarning in api_tests.py and dry_api_tests.py
......................................................................
[tests] suppress DeprecationWarning in api_tests.py and dry_api_tests.py
Change-Id: Ife387aad342d934399afd15a3d58e5ae571d3d9e
---
M tests/api_tests.py
M tests/dry_api_tests.py
2 files changed, 3 insertions(+), 3 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/api_tests.py b/tests/api_tests.py
index 560356e..c721cb3 100755
--- a/tests/api_tests.py
+++ b/tests/api_tests.py
@@ -66,7 +66,7 @@
@suppress_warnings(
'Instead of using kwargs |Both kwargs and parameters are set',
- FutureWarning)
+ DeprecationWarning)
def test_mixed_mode(self):
"""Test if parameters is used with kwargs."""
req1 = api.Request(site=self.site, action='test',
parameters='foo')
diff --git a/tests/dry_api_tests.py b/tests/dry_api_tests.py
index b42847c..53ebd97 100755
--- a/tests/dry_api_tests.py
+++ b/tests/dry_api_tests.py
@@ -61,8 +61,8 @@
self.diffsite = CachedRequest(
expiry=1, site=self.altsite,
parameters={'action': 'query', 'meta':
'userinfo'})
- # When using ** the parameters are still unicode
- with suppress_warnings('Instead of using kwargs ', FutureWarning):
+
+ with suppress_warnings('Instead of using kwargs ', DeprecationWarning):
self.deprecated_explicit = CachedRequest(
expiry=1, site=self.basesite, action='query',
meta='userinfo')
self.deprecated_asterisks = CachedRequest(
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/845042
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: Ife387aad342d934399afd15a3d58e5ae571d3d9e
Gerrit-Change-Number: 845042
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged