jenkins-bot has submitted this change and it was merged.

Change subject: Remove unnecessary command args in execute_pwb
......................................................................


Remove unnecessary command args in execute_pwb

The additional command args were introduced by T98671 to depress unexpected
DeprecationWarning on Python <2.7.9, which is now fixed by T103769.

Change-Id: I23b682741f53687ddf3e36274d97cde5759e040a
---
M tests/utils.py
1 file changed, 2 insertions(+), 6 deletions(-)

Approvals:
  John Vandenberg: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/tests/utils.py b/tests/utils.py
index 4e06af0..435545f 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -519,9 +519,5 @@
     @param args: list of arguments for pwb.py
     @type args: list of unicode
     """
-    if sys.version_info < (2, 7, 9):
-        return execute(command=[sys.executable, '-W ignore:A true', _pwb_py] + 
args,
-                       data_in=data_in, timeout=timeout, error=error)
-    else:
-        return execute(command=[sys.executable, _pwb_py] + args,
-                       data_in=data_in, timeout=timeout, error=error)
+    return execute(command=[sys.executable, _pwb_py] + args,
+                   data_in=data_in, timeout=timeout, error=error)

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I23b682741f53687ddf3e36274d97cde5759e040a
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: VcamX <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Ladsgroup <[email protected]>
Gerrit-Reviewer: Merlijn van Deen <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to