Skip to content

Need to downgrade pytest version #21

Closed
@ant-zuev

Description

@ant-zuev

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions