We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b18ad3 commit 937a38bCopy full SHA for 937a38b
1 file changed
src/tests/backend/common/database/test_database_base.py
@@ -500,7 +500,7 @@ async def run_database_context():
500
# Raise an exception to test cleanup
501
raise ValueError("Test exception")
502
503
- with pytest.raises(ValueError):
+ with pytest.raises(ValueError, match="Test exception"):
504
await run_database_context()
505
506
# Even with exception, close should have been called
0 commit comments