diff options
Diffstat (limited to 'django/test/utils.py')
-rw-r--r-- | django/test/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/test/utils.py b/django/test/utils.py index dbb1c20163..88da9d54c5 100644 --- a/django/test/utils.py +++ b/django/test/utils.py @@ -194,8 +194,8 @@ class override_settings(object): self.disable() def __call__(self, test_func): - from django.test import TestCase - if isinstance(test_func, type) and issubclass(test_func, TestCase): + from django.test import TransactionTestCase + if isinstance(test_func, type) and issubclass(test_func, TransactionTestCase): class inner(test_func): def _pre_setup(innerself): self.enable() |