serializers_regress test doesn't properly leave transaction management
|Reported by:||Leo Soto M.||Owned by:||nobody|
|Has patch:||yes||Needs documentation:|
|Needs tests:||Patch needs improvement:|
On source:/django/trunk/tests/regressiontests/serializers_regress/tests.py, if an exception occurs while transaction management is active, the transaction management block isn't properly "closed". This causes test suite crashes because the database can't be flushed later without committing or rollbacking the transaction (I'm experimenting them on my Jython testing).
The attaches patch ensures that
leave_transaction_managed is always executed.