Django

Code

Changeset 3074

Show
Ignore:
Timestamp:
06/03/06 18:45:49 (2 years ago)
Author:
adrian
Message:

Changed 'transactions' model unit test NOT to be executed for MySQL

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/modeltests/transactions/models.py

    r3030 r3074  
    2020API_TESTS = """ 
    2121>>> from django.db import connection, transaction 
     22""" 
    2223 
     24from django.conf import settings 
     25 
     26building_docs = getattr(settings, 'BUILDING_DOCS', False) 
     27 
     28if building_docs or settings.DATABASE_ENGINE != 'mysql': 
     29    API_TESTS += """ 
    2330# the default behavior is to autocommit after each save() action 
    2431>>> def create_a_reporter_then_fail(first, last):