ITADN

Pytest-postgresql doesn't work in python 3.9

#1210ClosedTHYAGARAJAN786 创建于 2025-10-30
T
THYAGARAJAN786commented
This module was working fine till Oct-29th, when tried to pip install in an virtual-env created with python 3.9; the installation goes through but while invoking pytest- throws an error: File "<>/site-packages/mirakuru/exceptions.py", line 25, in TimeoutExpired def __init__(self, executor: "SimpleExecutor", timeout: int | float) -> None: TypeError: unsupported operand type(s) for |: 'type' and 'type' After a bit of debugging realized a newer version of the mirakuru library 3.0.0 was released on Oct-30th and it only works with python 3.10+ So, i downgraded mirakuru manually to < 3.0.0 n my virtual environment; and then pytest invocation works seamlessly The requirements for the Pytest-postgresql need to be fixed
关闭于 2025-10-31 2 条评论