From cdaa312d0b5a5aa93eb5b239aaad4bf2b8c67fd5 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 16 Jul 2018 11:44:19 -0400 Subject: [PATCH] Fix rollback of savepoints for full DB tests --- test/fixtures.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/fixtures.py b/test/fixtures.py index ce6a339e2..d3ffdb7c7 100644 --- a/test/fixtures.py +++ b/test/fixtures.py @@ -153,6 +153,7 @@ def initialized_db(appconfig): yield # Run the test. try: + test_savepoint.rollback() test_savepoint.__exit__(None, None, None) except InternalError: # If postgres fails with an exception (like IntegrityError) mid-transaction, it terminates