jenkins-bot has submitted this change and it was merged.
Change subject: Skip test_new_mode if the mw version < 1.25wmf4 ......................................................................
Skip test_new_mode if the mw version < 1.25wmf4
Skips test_new_mode for sites using mw version '1.25wmf3' or before as in MW version 1.25wmf4 a new method for obtaining API parameter information was added and the old method was deprecated.
Bug: T77966 Change-Id: I13bb53c04c6a49828b99f268ba7fed5e41c0f9bc --- M tests/api_tests.py 1 file changed, 4 insertions(+), 0 deletions(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/api_tests.py b/tests/api_tests.py index bf43d3a..de05bed 100644 --- a/tests/api_tests.py +++ b/tests/api_tests.py @@ -229,6 +229,10 @@
def test_new_mode(self): site = self.get_site() + if MediaWikiVersion(site.version()) < MediaWikiVersion('1.25wmf4'): + raise unittest.SkipTest( + "version %s doesn't support the new paraminfo api" + % site.version()) pi = api.ParamInfo(site, modules_only_mode=True) pi.fetch(['info']) self.assertIn('info', pi)