Page MenuHomePhabricator

test_language_lists of site_tests.TestDataSiteSearchEntities fails
Closed, ResolvedPublicBUG REPORT

Description

languages returned by paraminfo and MW are not the same in MediaWiki version: 1.36.0-wmf.5

________________ TestDataSiteSearchEntities.test_language_lists ________________

self = <tests.site_tests.TestDataSiteSearchEntities testMethod=test_language_lists>

    def test_language_lists(self):
        """Test that languages returned by paraminfo and MW are the same."""
        site = self.get_site()
        lang_codes = site._paraminfo.parameter('wbsearchentities',
                                               'language')['type']
        lang_codes2 = [lang['code']
                       for lang in site._siteinfo.get('languages')]
>       self.assertEqual(lang_codes, lang_codes2)
E       AssertionError: Lists differ: ['aa'[613 chars]', 'dag', 'de', 'de-at', 'de-ch', 'de-formal',[2676 chars]'zu'] != ['aa'[613 chars]', 'de', 'de-at', 'de-ch', 'de-formal', 'din',[2669 chars]'zu']
E       
E       First differing element 86:
E       'dag'
E       'de'
E       
E       First list contains 1 additional elements.
E       First extra element 461:
E       'zu'
E       
E       Diff is 4731 characters long. Set self.maxDiff to None to see it.

https://api.travis-ci.org/v3/job/719830734/log.txt

Event Timeline

Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. · View Herald Transcript
Xqt triaged this task as High priority.Aug 22 2020, 7:19 AM

This is probably related to work in T259340 or T260118.

Test that languages returned by paraminfo and MW are the same won't likely apply anymore.

Change 621878 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [bugfix] _paraminfo and _siteinfo gives different languages results

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

Xqt changed the subtype of this task from "Task" to "Bug Report".Aug 22 2020, 12:19 PM

Change 621878 merged by jenkins-bot:
[pywikibot/core@master] [bugfix] _paraminfo and _siteinfo gives different languages results

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