jenkins-bot has submitted this change and it was merged.
Change subject: Ignore output of script test 'watchlist' -simulate ......................................................................
Ignore output of script test 'watchlist' -simulate
Bug: T77965 Change-Id: I0e528b4f4969bdaa1722281dffc36b86e727e4c8 --- M tests/script_tests.py 1 file changed, 6 insertions(+), 2 deletions(-)
Approvals: XZise: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/script_tests.py b/tests/script_tests.py index 06f3df7..a785d21 100644 --- a/tests/script_tests.py +++ b/tests/script_tests.py @@ -12,15 +12,16 @@ import sys import time import subprocess + import pywikibot from pywikibot import config -from tests.aspects import unittest, DefaultSiteTestCase, MetaTestCaseClass, PwbTestCase
+from tests.aspects import unittest, DefaultSiteTestCase, MetaTestCaseClass, PwbTestCase +from tests.utils import allowed_failure
base_path = os.path.split(os.path.split(__file__)[0])[0] pwb_path = os.path.join(base_path, 'pwb.py') scripts_path = os.path.join(base_path, 'scripts') -
script_deps = { 'script_wui': ['crontab', 'lua'], @@ -391,6 +392,9 @@ (config.family == 'wikipedia' and script_name == 'disambredir') or (config.family == 'wikipedia' and config.mylang != 'en' and script_name == 'misspelling')): dct[test_name] = unittest.expectedFailure(dct[test_name]) + elif script_name in ['watchlist', # T77965 + ]: + dct[test_name] = allowed_failure(dct[test_name]) dct[test_name].__doc__ = \ 'Test running ' + script_name + ' -simulate.' dct[test_name].__name__ = test_name