Fix rollback of savepoints for full DB tests
This commit is contained in:
parent
eb8e325f94
commit
cdaa312d0b
1 changed files with 1 additions and 0 deletions
|
@ -153,6 +153,7 @@ def initialized_db(appconfig):
|
||||||
yield # Run the test.
|
yield # Run the test.
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
test_savepoint.rollback()
|
||||||
test_savepoint.__exit__(None, None, None)
|
test_savepoint.__exit__(None, None, None)
|
||||||
except InternalError:
|
except InternalError:
|
||||||
# If postgres fails with an exception (like IntegrityError) mid-transaction, it terminates
|
# If postgres fails with an exception (like IntegrityError) mid-transaction, it terminates
|
||||||
|
|
Reference in a new issue