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(