summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-01-12 21:55:19 +0000
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-01-12 21:55:19 +0000
commit30c846bf3d086acee8dbc1164abdca718a9f19d3 (patch)
treeda42d9331e96ffc33c986d054637c4d0386dcd36 /tests
parente1ba9111ac7ae0a625adc467712e86a9e8000570 (diff)
Fixed #6669 -- Ensured database connections are marked as dirty by CursorDebugWrapper.execute/executemany. Refs #9964. Thanks james at 10gic net for the report and Claude Paroz for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17368 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
-rw-r--r--tests/regressiontests/transactions_regress/tests.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/regressiontests/transactions_regress/tests.py b/tests/regressiontests/transactions_regress/tests.py
index 22f1b0f911..59722630df 100644
--- a/tests/regressiontests/transactions_regress/tests.py
+++ b/tests/regressiontests/transactions_regress/tests.py
@@ -4,6 +4,7 @@ from django.core.exceptions import ImproperlyConfigured
from django.db import connection, transaction
from django.db.transaction import commit_on_success, commit_manually, TransactionManagementError
from django.test import TransactionTestCase, skipUnlessDBFeature
+from django.test.utils import override_settings
from django.utils.unittest import skipIf
from .models import Mod, M2mA, M2mB
@@ -166,6 +167,13 @@ class TestTransactionClosing(TransactionTestCase):
except:
self.fail("A transaction consisting of a failed operation was not closed.")
+ @override_settings(DEBUG=True)
+ def test_failing_query_transaction_closed_debug(self):
+ """
+ Regression for #6669. Same test as above, with DEBUG=True.
+ """
+ self.test_failing_query_transaction_closed()
+
class TestManyToManyAddTransaction(TransactionTestCase):
def test_manyrelated_add_commit(self):