jenkins-bot has submitted this change and it was merged. ( 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(-)
Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved
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()
pywikibot-commits@lists.wikimedia.org