On 17/01/2026 15:21, Jon Turney via Cygwin wrote:
On 27/12/2025 16:42, Marco Atzeri via Cygwin-announce wrote:
New release for
[...]
python312-pytest-9.0.2-1
Thanks for all these updates!
One thing I notice with python-pytest is that /usr/bin/pytest now names
python3.12 in it's #! line.
packing mistake.
python312-pytest-9.0.2-2 corrects it but you will need to reinstall
python39-pytest-8.3.4-1 for the correct /usr/bin/pytest
This can be confusing if you have python3 set up to point to python3.9,
because you can have a situation where something runs OK, but fails
under pytest, because you haven't also installed the equivalent
python312 modules it needs.
Maybe pytest (and py.test) should be managed by alternatives (or perhaps
not installed, so /usr/bin/pytest-3.nn is always used)?
Theorically yes, but not really a priority
It also seems like python-pytest3nn should now depend on python3nn-
pygments?
$ pytest
Traceback (most recent call last):
File "/usr/bin/pytest", line 3, in <module>
from pytest import console_main
File "/usr/lib/python3.12/site-packages/pytest/__init__.py", line 8,
in <module>
from _pytest._code import ExceptionInfo
File "/usr/lib/python3.12/site-packages/_pytest/_code/__init__.py",
line 5, in <module>
from .code import Code
File "/usr/lib/python3.12/site-packages/_pytest/_code/code.py", line
43, in <module>
from _pytest._io import TerminalWriter
File "/usr/lib/python3.12/site-packages/_pytest/_io/__init__.py",
line 3, in <module>
from .terminalwriter import get_terminal_width
File "/usr/lib/python3.12/site-packages/_pytest/_io/
terminalwriter.py", line 13, in <module>
import pygments
ModuleNotFoundError: No module named 'pygments'
python312-pytest requires: python312 python312-iniconfig
python312-pluggy python312-pygments python312-packaging python312-toml
Regards
Marco
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation: https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple