Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 55e453a09c071cd34962d5b809121aa17241aaae 1 parent 168429d
@adrianholovaty adrianholovaty authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 tests/modeltests/transactions/models.py
View
7 tests/modeltests/transactions/models.py
@@ -19,7 +19,14 @@ def __repr__(self):
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)
Please sign in to comment.
Something went wrong with that request. Please try again.