Page MenuHomePhabricator

TestSiteGeneratorsUsers.test_allusers test of site_generators_tests fails on wowwiki
Open, HighPublicBUG REPORT

Description

py -3.13 -m pwb -site:wowwiki:uk site_generators_tests -v TestSiteGeneratorsUsers.test_allusers

tests: max_retries reduced from 15 to 3
test_allusers (__main__.TestSiteGeneratorsUsers.test_allusers)
Test the site.allusers() method. ... ERROR

======================================================================
ERROR: test_allusers (__main__.TestSiteGeneratorsUsers.test_allusers)
Test the site.allusers() method.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\pwb\GIT\core\tests\site_generators_tests.py", line 694, in test_allusers
    au = list(mysite.allusers(total=10))
  File "<frozen _collections_abc>", line 360, in __next__
  File "C:\pwb\GIT\core\pywikibot\tools\collections.py", line 280, in send
    return next(self._started_gen)
  File "C:\pwb\GIT\core\pywikibot\data\api\_generators.py", line 695, in generator
    self.data = self.request.submit()
                ~~~~~~~~~~~~~~~~~~~^^
  File "C:\pwb\GIT\core\pywikibot\data\api\_requests.py", line 1384, in submit
    self._data = super().submit()
                 ~~~~~~~~~~~~~~^^
  File "C:\pwb\GIT\core\pywikibot\data\api\_requests.py", line 1146, in submit
    if self._internal_api_error(code, error.copy(), result):
       ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\pwb\GIT\core\pywikibot\data\api\_requests.py", line 998, in _internal_api_error
    raise e
pywikibot.exceptions.APIMWError: internal_api_error_TypeError: [51c9a9838ebc0c44f4e2c98c81055a5c] Caught exception of type TypeError
[errorclass: TypeError]

This is caused by the T418983-change made with rPWBCffc5fea when removing the '!' start parameter but other parameters does not work with that default.

Event Timeline

Xqt triaged this task as High priority.Jun 23 2026, 8:08 AM
Xqt changed the subtype of this task from "Task" to "Bug Report".
Xqt moved this task from Backlog to Test failures on the Pywikibot-tests board.

Change #1305046 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] tests: Mark TestSiteGeneratorsUsers.test_allusers as expected failure

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

Change #1305046 merged by jenkins-bot:

[pywikibot/core@master] tests: Mark TestSiteGeneratorsUsers.test_allusers as expected failure

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