Skip to content

Need to downgrade pytest version #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ant-zuev opened this issue Feb 9, 2024 · 2 comments
Closed

Need to downgrade pytest version #21

ant-zuev opened this issue Feb 9, 2024 · 2 comments

Comments

@ant-zuev
Copy link
Contributor

ant-zuev commented Feb 9, 2024

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

@pcisar
Copy link
Contributor

pcisar commented Feb 9, 2024

Fixed in v0.19.1

@pcisar
Copy link
Contributor

pcisar commented Feb 20, 2024

Well, the bug was actually in firebird-base package, so the fix in firebird-qa was reverted in v0.19.2 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants