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

TASK DESCRIPTION
    09:51:12 _____________ [doctest] pywikibot.page._category.Category.articles 
_____________
    09:51:12 143         Duplicates are filtered. To enable duplicates use 
:meth:`members`
    09:51:12 144         with ``member_type=['page', 'file']`` instead.
    09:51:12 145 
    09:51:12 146         **Usage:**
    09:51:12 147 
    09:51:12 148         >>> site = pywikibot.Site('wikipedia:test')
    09:51:12 149         >>> cat = pywikibot.Category(site, 'Pywikibot')
    09:51:12 150         >>> list(cat.articles())
    09:51:12 151         [Page('Pywikibot nobots test')]
    09:51:12 152         >>> for p in cat.articles(recurse=1, namespaces=2, 
total=3):
    09:51:12 Differences (unified diff with -expected +actual):
    09:51:12     @@ -1,3 +1,3 @@
    09:51:12     +1
    09:51:12     +1
    09:51:12      2
    09:51:12     -3
    09:51:12     -4
    09:51:12 
    09:51:12 /src/pywikibot/page/_category.py:152: DocTestFailure
    09:51:12 _____________ [doctest] pywikibot.page._category.Category.members 
______________
    09:51:12 206 Yield all category contents (subcats, pages, and files).
    09:51:12 207 
    09:51:12 208         **Usage:**
    09:51:12 209 
    09:51:12 210         >>> site = pywikibot.Site('wikipedia:test')
    09:51:12 211         >>> cat = pywikibot.Category(site, 'Pywikibot')
    09:51:12 212         >>> list(cat.members(member_type='subcat'))
    09:51:12 Expected:
    09:51:12     [Category('Category:Subpage testing')]
    09:51:12 Got:
    09:51:12     [Category('Category:Pywikibot Protect Test'), 
Category('Category:Subpage testing')]
    09:51:12 
    09:51:12 /src/pywikibot/page/_category.py:212: DocTestFailure
  
  from 
https://integration.wikimedia.org/ci/job/pywikibot-core-tox-doctest-docker/9251/console

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

WORKBOARD
  https://phabricator.wikimedia.org/project/board/87/

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

To: JJMC89
Cc: Aklapper, pywikibot-bugs-list, JJMC89, mevo, PotsdamLamb, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Mdupont, Dvorapa, Altostratus, binbot, Avicennasis, mys_721tx, Xqt, jayvdb, 
Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to