Xqt added a comment.

I tried a very old revision d985722e5da47a371 dated 17/09/2015 with

C:\pwb\GIT\core>pwb.py tests/api_tests -v TestLazyLoginNotExistUsername

and got the same result i.e. recursion loop:

C:\pwb\GIT\core>pwb.py tests/api_tests -v TestLazyLoginNotExistUsername
C:\pwb\GIT\core\pywikibot\config2.py:997: UserWarning: Configuration variable ab
solute_import is defined but unknown. Misspelled?
  'Misspelled?'.format(name), UserWarning)
C:\pwb\GIT\core\pywikibot\config2.py:997: UserWarning: Configuration variable db
_port is defined but unknown. Misspelled?
  'Misspelled?'.format(name), UserWarning)
C:\pwb\GIT\core\pywikibot\config2.py:997: UserWarning: Configuration variable we
blink_dead_days is defined but unknown. Misspelled?
  'Misspelled?'.format(name), UserWarning)
No handlers could be found for logger "pywiki"
tests: max_retries reduced from 25 to 1
test_access_denied_notexist_username (__main__.TestLazyLoginNotExistUsername)
Test the query with a username which does not exist. ... WARNING: .\tests\api_te
sts.py:914: DeprecationWarning: Instead of using kwargs from Request.__init__, p
arameters for the request to the API should be added via the "parameters" parame
ter.
  req = api.Request(site=self.site, action=""

WARNING: API error readapidenied: You need read permission to use this module
WARNING: API error readapidenied: You need read permission to use this module
ERROR: APIError: readapidenied: You need read permission to use this module [hel
p:See https://steward.wikimedia.org/w/api.php for API usage]
WARNING: C:\pwb\GIT\core\pywikibot\site.py:2609: DeprecationWarning: pywikibot.f
amily.Family.version is deprecated; use APISite.version() instead.
  version = self.family.version(self.code)

WARNING: API error readapidenied: You need read permission to use this module
Logging in to steward:steward as Not registered username
WARNING: API warning (login): Fetching a token via action="" is deprecated. U
se action="" instead.
ERROR: Login failed (Failed).
Logging in to steward:steward as Not registered username
WARNING: API warning (login): Fetching a token via action="" is deprecated. U
se action="" instead.
ERROR: Login failed (Failed).
Logging in to steward:steward as Not registered username
WARNING: API warning (login): Fetching a token via action="" is deprecated. U
se action="" instead.
ERROR: Login failed (Failed).
Logging in to steward:steward as Not registered username
WARNING: API warning (login): Fetching a token via action="" is deprecated. U
se action="" instead.
ERROR: Login failed (Failed).
Logging in to steward:steward as Not registered username
WARNING: API warning (login): Fetching a token via action="" is deprecated. U
se action="" instead.
ERROR: Login failed (Failed).
Logging in to steward:steward as Not registered username
Traceback (most recent call last):
...
KeyboardInterrupt

Either this bug exists from the beginning but wasn't detected with previous tests or the behaviour has been changed elsewhere. Maybe both is right.


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

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

To: Xqt
Cc: Ladsgroup, Multichill, valhallasw, jayvdb, Aklapper, Xqt, pywikibot-bugs-list, MayS, Mdupont, JJMC89, Alchimista
_______________________________________________
pywikibot-bugs mailing list
pywikibot-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to