Browse files

Fixed #17268 -- Two failures in the cache tests.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
aaugustin committed Nov 21, 2011
1 parent aa5230c commit 0a272e42012d0c727e09bd8956f58a0ef0337735
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/regressiontests/cache/
@@ -22,7 +22,7 @@
UpdateCacheMiddleware, CacheMiddleware)
from django.template import Template
from django.template.response import TemplateResponse
-from django.test import TestCase, RequestFactory
+from django.test import TestCase, TransactionTestCase, RequestFactory
from django.test.utils import (get_warnings_state, restore_warnings_state,
from django.utils import timezone, translation, unittest
@@ -746,7 +746,7 @@ def custom_key_func(key, key_prefix, version):
return 'CUSTOM-' + '-'.join([key_prefix, str(version), key])
-class DBCacheTests(BaseCacheTests, TestCase):
+class DBCacheTests(BaseCacheTests, TransactionTestCase):
backend_name = 'django.core.cache.backends.db.DatabaseCache'
def setUp(self):

0 comments on commit 0a272e4

Please sign in to comment.