jenkins-bot submitted this change.

View Change

Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
[tests] Ignore FutureWarning with script_tests

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

diff --git a/tests/utils.py b/tests/utils.py
index 2fb0218..a9c6a52 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -20,6 +20,8 @@
from pywikibot.exceptions import APIError
from pywikibot.login import LoginStatus
from pywikibot.site import Namespace
+from pywikibot.tools import PYTHON_VERSION
+
from tests import _pwb_py


@@ -444,6 +446,8 @@
:param command: executable to run and arguments to use
:type command: list of str
"""
+ if PYTHON_VERSION < (3, 5, 3):
+ command.insert(1, '-W ignore::FutureWarning:pywikibot:112')
if cryptography_version and cryptography_version < [1, 3, 4]:
command.insert(1, '-W ignore:Old version of cryptography:Warning')


To view, visit change 714202. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I2043aa1d7c2ad2f06ca169f84eec2ca4304d3187
Gerrit-Change-Number: 714202
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged