Skip to content

Unit tests: make work with pytest 8 #1022

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

Merged

Conversation

robsdedude
Copy link
Member

In pytest 8 changed the warns assertion was changed to also check for warnings if an error was raised. This used to be different, and the test suite relied (unnecessarily) on this behavior.

See also pytest-dev/pytest#9036

In pytest 8 changed the warns assertion was changed to also check for warnings
if an error was raised. This used to be different, and the test suite relied
(unnecessarily) on this behavior.

See also pytest-dev/pytest#9036
Copy link

@RichardIrons-neo4j RichardIrons-neo4j left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

@robsdedude robsdedude enabled auto-merge February 15, 2024 15:49
@robsdedude robsdedude merged commit a9d40af into neo4j:5.0 Feb 15, 2024
@robsdedude robsdedude deleted the tests/fix-warning-exception-assertion branch February 15, 2024 17:03
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

Successfully merging this pull request may close these issues.

2 participants