jenkins-bot has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/853709 )
Change subject: [IMPR] get 'PYWIKIBOT_TEST_PROD_ONLY' outside the loop
......................................................................
[IMPR] get 'PYWIKIBOT_TEST_PROD_ONLY' outside the loop
Change-Id: I3a221684489c45d1fa347f38ff9852d106607e04
---
M tests/aspects.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/tests/aspects.py b/tests/aspects.py
index 431a387..3f12d00 100644
--- a/tests/aspects.py
+++ b/tests/aspects.py
@@ -944,8 +944,8 @@
if dry:
interface = DrySite
+ prod_only = os.environ.get('PYWIKIBOT_TEST_PROD_ONLY', '0') == '1'
for data in cls.sites.values():
- prod_only = os.environ.get('PYWIKIBOT_TEST_PROD_ONLY', '0') == '1'
if (data.get('code') in ('test', 'mediawiki')
and prod_only and not dry):
raise unittest.SkipTest(
--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/853709
To unsubscribe, or for help writing mail filters, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I3a221684489c45d1fa347f38ff9852d106607e04
Gerrit-Change-Number: 853709
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]