From 05a9f3a09a5a2334fe1d1675f46ea524240999b3 Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Thu, 19 May 2016 09:10:47 -0400 Subject: [PATCH] Refs #24100 -- Fixed a test failure on MySQL related to non-transactional DDL. Thanks Tim for the report. --- tests/migrate_signals/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/migrate_signals/tests.py b/tests/migrate_signals/tests.py index ca9721e71c..a47d5f9ab9 100644 --- a/tests/migrate_signals/tests.py +++ b/tests/migrate_signals/tests.py @@ -2,7 +2,7 @@ from django.apps import apps from django.core import management from django.db import migrations from django.db.models import signals -from django.test import TestCase, override_settings +from django.test import TransactionTestCase, override_settings from django.utils import six APP_CONFIG = apps.get_app_config('migrate_signals') @@ -57,7 +57,7 @@ pre_migrate_receiver = OneTimeReceiver(signals.pre_migrate) post_migrate_receiver = OneTimeReceiver(signals.post_migrate) -class MigrateSignalTests(TestCase): +class MigrateSignalTests(TransactionTestCase): available_apps = ['migrate_signals']