Dalba has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/404151 )

Change subject: utils.py: Ignore the deprecation Warning in 2.6 and 3.3
......................................................................

utils.py: Ignore the deprecation Warning in 2.6 and 3.3

This was causing script tests to fail under Python 2.6 builds.
See: https://travis-ci.org/wikimedia/pywikibot/jobs/328633098#L5051

Change-Id: I35e49ef8816b25fff451892851e2a3563fddbfbd
---
M tests/utils.py
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/51/404151/1

diff --git a/tests/utils.py b/tests/utils.py
index 5235917..ebaea24 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -791,7 +791,9 @@
     if PYTHON_VERSION < (2, 7):
         command.insert(
             1, '-W 
ignore:{0}:DeprecationWarning'.format(PYTHON_26_CRYPTO_WARN))
-
+    if PYTHON_VERSION[:2] in ((3, 3), (2, 6)):
+        command.insert(1, '-W ignore:{0}:DeprecationWarning'.format(
+            'Pywikibot will soon drop support for Python 2.6 and 3.3'))
     # Any environment variables added on Windows must be of type
     # str() on Python 2.
     env = os.environ.copy()

-- 
To view, visit https://gerrit.wikimedia.org/r/404151
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I35e49ef8816b25fff451892851e2a3563fddbfbd
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Dalba <dalba.w...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to