summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/transactions_regress/tests.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/transactions_regress/tests.py b/tests/transactions_regress/tests.py
index e320f76169..fb3f257dab 100644
--- a/tests/transactions_regress/tests.py
+++ b/tests/transactions_regress/tests.py
@@ -199,10 +199,8 @@ class TestNewConnection(IgnorePendingDeprecationWarningsMixin, TransactionTestCa
def tearDown(self):
try:
connections[DEFAULT_DB_ALIAS].abort()
- except Exception:
- import ipdb; ipdb.set_trace()
- finally:
connections[DEFAULT_DB_ALIAS].close()
+ finally:
connections[DEFAULT_DB_ALIAS] = self._old_backend
def test_commit(self):