FirebirdSQL/python3-driver

Need to downgrade pytest version

ant-zuev opened this issue · 0 comments

After adding the pytest dependency version 8 and above to pyproject.toml, there were problems with some tests due to a bug in pytest release 8.0.0.
For example, in the firebird-qa/tests/bugs/core_0859_test.py test there is a problem with exception handling:

self = <ExceptionInfo DatabaseError('Datatype ARRAY is not supported for sorting operation') tblen=5>
exc = DatabaseError('Datatype ARRAY is not supported for sorting operation')

    def _stringify_exception(self, exc: BaseException) -> str:
        return "\n".join(
>           [
                str(exc),
                *getattr(exc, "__notes__", []),
            ]
        )
E       TypeError: 'NoneType' object is not iterable

/usr/local/lib/python3.8/site-packages/_pytest/_code/code.py:702: TypeError

Similar problem in pytest-dev: pytest-dev/pytest#11872