jenkins-bot has submitted this change and it was merged.
Change subject: Skip TestFactoryGenerator.test_regexfilter_ns ......................................................................
Skip TestFactoryGenerator.test_regexfilter_ns
This skips the test_regexfilter_ns test that takes over 10 mins to complete due to bug T85389.
-titleregex is fetching all of the pages matching the regex, regardless of the limit.
Change-Id: I25042dcb22d79586ddba9958a38ddddd064135f3 --- M tests/pagegenerators_tests.py 1 file changed, 2 insertions(+), 1 deletion(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/pagegenerators_tests.py b/tests/pagegenerators_tests.py index 5985c58..31d0ec3 100755 --- a/tests/pagegenerators_tests.py +++ b/tests/pagegenerators_tests.py @@ -389,13 +389,14 @@ self.assertIsInstance(page, pywikibot.Page) self.assertRegex(page.title().lower(), '^(.)\1+')
- @unittest.expectedFailure def test_regexfilter_ns(self): + raise unittest.SkipTest gf = pagegenerators.GeneratorFactory() self.assertTrue(gf.handleArg('-titleregex:.*')) gf.handleArg('-limit:10') gf.handleArg('-ns:1') gen = gf.getCombinedGenerator() + # The code below takes due to bug T85389 pages = list(gen) # TODO: Fix RegexFilterPageGenerator to handle namespaces other than 0 # Bug: T85389
pywikibot-commits@lists.wikimedia.org