jenkins-bot has submitted this change and it was merged.
Change subject: Change of pagegenerator in test_pageid ......................................................................
Change of pagegenerator in test_pageid
On zh.wikisource (where test was failing) are no articles starting from A. Because this test checks generator for page_id's and it doesn't matter what generator was initially used, I'm changing it to -random.
Bug: T151168 Change-Id: I4dba6d50c74136306434d7286d492f8a9a8deb9b --- M tests/pagegenerators_tests.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Mpaa: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/pagegenerators_tests.py b/tests/pagegenerators_tests.py index 73b98a5..f0e123e 100755 --- a/tests/pagegenerators_tests.py +++ b/tests/pagegenerators_tests.py @@ -895,7 +895,7 @@ """Test pageid parameter.""" # Get reference pages and their pageids. gf = pagegenerators.GeneratorFactory(site=self.get_site()) - self.assertTrue(gf.handleArg('-prefixindex:a')) + self.assertTrue(gf.handleArg('-random')) gf.handleArg('-limit:10') gen = gf.getCombinedGenerator() pages = list(gen)
pywikibot-commits@lists.wikimedia.org