Page MenuHomePhabricator

TestBacklinks.test_backlinks_redirects_length of site_generators_tests fails
Closed, ResolvedPublic

Description

TestBacklinks.test_backlinks_redirects_length of site_generators_tests fails recently:

08:04:19 =================================== FAILURES ===================================
08:04:19 ________________ TestBacklinks.test_backlinks_redirects_length _________________
08:04:19 
08:04:19 self = <tests.site_generators_tests.TestBacklinks testMethod=test_backlinks_redirects_length>
08:04:19 
08:04:19     def test_backlinks_redirects_length(self) -> None:
08:04:19         """Test backlinks redirects length."""
08:04:19         self.assertLength(self.backlinks, 1)
08:04:19 >       self.assertLength(self.references, 1)
08:04:19 
08:04:19 tests/site_generators_tests.py:1814:

I did not found the reason or any hint in the page histories but it also fails for older Pywikibot releases e.g. 9.6.3

See also T219752 and T194233 for the test.

Event Timeline

Xqt triaged this task as High priority.Wed, Sep 24, 8:13 AM
Xqt moved this task from Backlog to CI test failures on the Pywikibot-tests board.

Change #1191295 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] Tests: Fix TestBacklinks tests in site_generators_tests.py

https://gerrit.wikimedia.org/r/1191295

Change #1191295 merged by jenkins-bot:

[pywikibot/core@master] Tests: Fix TestBacklinks tests in site_generators_tests.py

https://gerrit.wikimedia.org/r/1191295