Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/959185 )
Change subject: [tests] Speedup script_tests ......................................................................
[tests] Speedup script_tests
Do not collect scripts for 'TestScriptGenerator' it they are in '_expected_failures' set
Change-Id: Ie42f4ba2e3297657302744de5a7a7694804f10ae --- M tests/script_tests.py 1 file changed, 15 insertions(+), 1 deletion(-)
Approvals: Xqt: Verified; Looks good to me, approved
diff --git a/tests/script_tests.py b/tests/script_tests.py index d60ce6c..435683e 100755 --- a/tests/script_tests.py +++ b/tests/script_tests.py @@ -306,13 +306,15 @@ .format(script_name, arguments))
if script_name in dct['_expected_failures']: + if name == 'TestScriptGenerator': + continue # do not test it dct[test_name] = unittest.expectedFailure(dct[test_name]) elif script_name in dct['_allowed_failures']: dct[test_name] = unittest.skip( '{} is in _allowed_failures set' .format(script_name))(dct[test_name]) elif script_name in failed_dep_script_set \ - and arguments == '-simulate': + and name == 'TestScriptSimulate': dct[test_name] = unittest.skip( '{} has dependencies; skipping' .format(script_name))(dct[test_name])
pywikibot-commits@lists.wikimedia.org