Page MenuHomePhabricator

test_identity of oauth_tests.TestOauthLoginManger fails with Python 3.9+
Open, HighPublicBUG REPORT

Description

======================================================================
FAIL: test_identity (tests.oauth_tests.TestOauthLoginManger)
Test identity.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/pywikibot/pywikibot/tests/oauth_tests.py", line 118, in test_identity
    self.assertIsInstance(login_manager.identity, dict)
AssertionError: None is not an instance of <class 'dict'>

It works with Python 3.7 and 3.8

Event Timeline

Xqt triaged this task as High priority.Nov 19 2024, 1:57 PM
Xqt renamed this task from test_identity of oauth_tests.TestOauthLoginManger fails with Python 3.8+ to test_identity of oauth_tests.TestOauthLoginManger fails with Python 3.9+.Nov 19 2024, 2:01 PM
Xqt updated the task description. (Show Details)

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

[pywikibot/core@master] tests: ignore PyJWT version 2.10.0 with mwoauth

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

Change #1092859 merged by Xqt:

[pywikibot/core@master] tests: ignore PyJWT version 2.10.0 with mwoauth

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

Xqt changed the subtype of this task from "Task" to "Bug Report".
Xqt added a project: Upstream.
Xqt moved this task from Backlog to Upstream issues on the Pywikibot board.
Xqt moved this task from Backlog to Reported Upstream on the Upstream board.

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

[pywikibot/core@master] Update requirements

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

Change #1092865 merged by jenkins-bot:

[pywikibot/core@master] Update requirements

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

Xqt reopened this task as In Progress.Nov 30 2024, 1:20 PM

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

[pywikibot/core@master] tests: Update PyJWT requirements

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

Change #1099298 merged by jenkins-bot:

[pywikibot/core@master] tests: Update PyJWT requirements

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