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