Page MenuHomePhabricator

pywikibot-core-tox-typing test does not run due to wrong pytest version
Closed, ResolvedPublicBUG REPORT

Description

13:48:16 typing create: /src/.tox/typing
13:48:16 typing installdeps: pytest-mypy, types-PyMySQL, types-requests
13:48:17 typing develop-inst: /src
13:48:25 typing installed: certifi==2026.4.22,charset-normalizer==3.4.7,exceptiongroup==1.3.1,filelock==3.19.1,idna==3.13,iniconfig==2.1.0,librt==0.10.0,mwparserfromhell==0.7.2,mypy==1.19.1,mypy_extensions==1.1.0,packaging==26.2,pathspec==1.1.1,pluggy==1.6.0,Pygments==2.20.0,pytest==8.4.2,pytest-mypy==1.0.1,-e git+https://gerrit.wikimedia.org/r/pywikibot/core@fc1aec2ec154c471738981408806b5eefa755a0e#egg=pywikibot,requests==2.32.5,tomli==2.4.1,types-PyMySQL==1.1.0.20251220,types-requests==2.32.4.20260107,typing_extensions==4.15.0,urllib3==2.6.3
13:48:31 typing run-test-pre: PYTHONHASHSEED='1941667027'
13:48:31 typing run-test: commands[0] | mypy --version
13:48:31 mypy 1.19.1 (compiled: yes)
13:48:31 typing run-test: commands[1] | pytest --mypy -m mypy pywikibot
13:48:31 ERROR: /src/tox.ini: 'minversion' requires pytest-9.0.3, actual pytest-8.4.2'
13:48:31 
13:48:31 ERROR: InvocationError for command /src/.tox/typing/bin/pytest --mypy -m mypy pywikibot (exited with code 4)
13:48:31 ___________________________________ summary ____________________________________
13:48:31 ERROR:   typing: commands failed

Event Timeline

Xqt changed the task status from Open to In Progress.May 9 2026, 11:55 AM
Xqt claimed this task.
Xqt triaged this task as Medium priority.

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

[pywikibot/core@master] tests: Run pywikibot-core-tox-typing test with Python 3.10

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

With the given patch, pytest 9.0.3 is used:

14:03:01 typing create: /src/.tox/typing
14:03:01 typing installdeps: pytest-mypy, types-PyMySQL, types-requests
14:03:02 typing develop-inst: /src
typing installed: ast_serialize==0.3.0,certifi==2026.4.22,charset-normalizer==3.4.7,exceptiongroup==1.3.1,filelock==3.29.0,idna==3.13,iniconfig==2.3.0,librt==0.10.0,mwparserfromhell==0.7.2,mypy==2.0.0,mypy_extensions==1.1.0,packaging==26.2,pathspec==1.1.1,pluggy==1.6.0,Pygments==2.20.0,pytest==9.0.3,pytest-mypy==1.0.1,-e git+https://gerrit.wikimedia.org/r/pywikibot/core@08c3aeda7f5d3ced27531f629d002ab0282a1755#egg=pywikibot,requests==2.33.1,tomli==2.4.1,types-PyMySQL==1.1.0.20260508,types-requests==2.33.0.20260508,typing_extensions==4.15.0,urllib3==2.7.0
14:03:17 typing run-test-pre: PYTHONHASHSEED='3631484732'
14:03:17 typing run-test: commands[0] | mypy --version
14:03:17 mypy 2.0.0 (compiled: yes)
14:03:17 typing run-test: commands[1] | pytest --mypy -m mypy pywikibot
14:03:17 ============================= test session starts ==============================
14:03:18 platform linux -- Python 3.10.20, pytest-9.0.3, pluggy-1.6.0

Change #1285483 merged by Xqt:

[pywikibot/core@master] tests: Run pywikibot-core-tox-typing test with Python 3.10

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