neo4j / neo4j-python-driver

Neo4j Bolt driver for Python
https://neo4j.com/docs/api/python-driver/current/
Other
883 stars 187 forks source link

Unit tests: make work with pytest 8 #1022

Closed robsdedude closed 5 months ago

robsdedude commented 5 months ago

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 https://github.com/pytest-dev/pytest/issues/9036