Fixed #20142 -- Added error handling for fixture setup #1127

Merged
merged 1 commit into from May 18, 2013

Conversation

Projects
None yet
2 participants
Contributor

filias commented May 18, 2013

https://code.djangoproject.com/ticket/20142

This fix does not contain tests as it is impossible to test it without mocking and a decision about using mocks in the project as yet not been made. This was discussed and agreed with Russel.

Fixed #20142 -- Added error handling for fixture setup
TestCase._fixture_setup disables transactions so,
in case of an error, cleanup is needed to re-enable
transactions, otherwise following TransactionTestCase
would fail.

aaugustin added a commit that referenced this pull request May 18, 2013

Merge pull request #1127 from filias/20142
Fixed #20142 -- Added error handling for fixture setup

@aaugustin aaugustin merged commit 5915800 into django:master May 18, 2013

Contributor

filias commented May 19, 2013

test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment