summaryrefslogtreecommitdiff
path: root/tests/modeltests/transactions
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-06-03 23:45:49 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-06-03 23:45:49 +0000
commit55e453a09c071cd34962d5b809121aa17241aaae (patch)
tree65b6d881800b28178f08cefd83607a5afd5c5f2b /tests/modeltests/transactions
parent168429d5977592e8e5aaa8f740191711b1cbe054 (diff)
Changed 'transactions' model unit test NOT to be executed for MySQL
git-svn-id: http://code.djangoproject.com/svn/django/trunk@3074 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/modeltests/transactions')
-rw-r--r--tests/modeltests/transactions/models.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/modeltests/transactions/models.py b/tests/modeltests/transactions/models.py
index ef7791c3f3..98969c92cb 100644
--- a/tests/modeltests/transactions/models.py
+++ b/tests/modeltests/transactions/models.py
@@ -19,7 +19,14 @@ class Reporter(models.Model):
API_TESTS = """
>>> from django.db import connection, transaction
+"""
+
+from django.conf import settings
+
+building_docs = getattr(settings, 'BUILDING_DOCS', False)
+if building_docs or settings.DATABASE_ENGINE != 'mysql':
+ API_TESTS += """
# the default behavior is to autocommit after each save() action
>>> def create_a_reporter_then_fail(first, last):
... a = Reporter(first_name=first, last_name=last)