Xqt created this task.
Xqt added projects: Pywikibot, Pywikibot-tests.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.

TASK DESCRIPTION
  The doctest of the following code fails because the category was moved: 
https://commons.wikimedia.org/w/index.php?title=//Category:Hello_World//!&action=history
  
    18:02:07 1355         >>> site = pywikibot.Site('wikipedia:zh')
    18:02:07 1356         >>> page = site.page_from_repository('Q131303')
    18:02:07 1357         >>> page.title()
    18:02:07 1358         'Hello World'
    18:02:07 1359 
    18:02:07 1360         This method is able to upcast categories:
    18:02:07 1361 
    18:02:07 1362         >>> site = pywikibot.Site('commons')
    18:02:07 1363         >>> page = site.page_from_repository('Q131303')
    18:02:07 1364         >>> page.title()
    18:02:07 Expected:
    18:02:07     'Category:Hello World'
    18:02:07 Got:
    18:02:07     'Category:Hello World!'

TASK DETAIL
  https://phabricator.wikimedia.org/T422296

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to