jenkins-bot merged this change.

View Change

Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
[tests] Use PY2 instead of PYTHON_VERSION for WarningSourceSkipContextManager

Pywikibot supports Python (3.4)/3.5+. It is not necessary to have a different
behaviour for 3.0 - 3.1 anymore

Change-Id: I63136e4b877d4cd4ea239e30c13281387f25e306
---
M tests/utils.py
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/utils.py b/tests/utils.py
index 1d917cb..f1acc10 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -253,7 +253,7 @@
skip_frames -= 1

# Ignore socket IO warnings (T183696, T184996)
- if (PYTHON_VERSION >= (3, 2)
+ if (not PY2
and issubclass(warn_msg.category, ResourceWarning)
and str(warn_msg.message).startswith(
('unclosed <ssl.SSLSocket',

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

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I63136e4b877d4cd4ea239e30c13281387f25e306
Gerrit-Change-Number: 565511
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Dvorapa <dvorapa@seznam.cz>
Gerrit-Reviewer: jenkins-bot (75)