Page MenuHomePhabricator

i18n.py Needs to be Updated to Account for New Language Added to i18n.known_languages() so that doctest Passes in Jenkins
Closed, ResolvedPublic

Description

Currently, the Jenkins main test build fails due to an additional language added to the list of localized languages. This was added under commit 20ad19e337e064634f1d0afc547e972ebe5e7cbe.

Output from a Jenkins build attempt on 2023-09-11:

=================================== FAILURES ===================================
09:08:56 ___________________ [doctest] pywikibot.i18n.known_languages ___________________
09:08:56 906 All languages we have localizations for.
09:08:56 907 
09:08:56 908     >>> from pywikibot import i18n
09:08:56 909     >>> i18n.known_languages()[:10]
09:08:56 910     ['ab', 'aeb', 'af', 'am', 'an', 'ang', 'anp', 'ar', 'arc', 'ary']
09:08:56 911     >>> i18n.known_languages()[-10:]
09:08:56 912     ['vo', 'vro', 'wa', 'war', 'xal', 'xmf', 'yi', 'yo', 'yue', 'zh']
09:08:56 913     >>> len(i18n.known_languages())
09:08:56 Expected:
09:08:56     253
09:08:56 Got:
09:08:56     254
09:08:56 
09:08:56 /src/pywikibot/i18n.py:913: DocTestFailure

Docstring should be updated from 253 to 254.

Event Timeline

Enag2000 renamed this task from pywikibot-core-tox-doctest-docker Needs to be Updated to Account for New Language Added to i18n.known_languages() to i18n.py Needs to be Updated to Account for New Language Added to i18n.known_languages() so that doctest Passes in Jenkins.Sep 13 2023, 4:47 AM
Enag2000 updated the task description. (Show Details)
Meno25 claimed this task.
Meno25 subscribed.