Workaround for LP #1154599
Fixed dep order for pytest
Improved tests for multi-row insertion

And added SQLError raising to the __exit__ handler