TestCase disables savepoint_commit, savepoint_rollback
|Reported by:||forest||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
TestCase uses transactions to speed up tests. This is reasonable, well-documented behavior.
However, there is no benefit in disabling savepoint_commit and savepoint_rollback. With these functions disabled, there is no way to recover the transaction if an IntegrityError occurs.
Fixing this is trivial (I'll attach a patch).
Change History (10)
Changed 6 years ago by forest
comment:1 Changed 6 years ago by forest
- Has patch set
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset