Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17131 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 0a272e42012d0c727e09bd8956f58a0ef0337735 1 parent aa5230c
Aymeric Augustin authored November 21, 2011

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  tests/regressiontests/cache/tests.py
4  tests/regressiontests/cache/tests.py
@@ -22,7 +22,7 @@
22 22
     UpdateCacheMiddleware, CacheMiddleware)
23 23
 from django.template import Template
24 24
 from django.template.response import TemplateResponse
25  
-from django.test import TestCase, RequestFactory
  25
+from django.test import TestCase, TransactionTestCase, RequestFactory
26 26
 from django.test.utils import (get_warnings_state, restore_warnings_state,
27 27
     override_settings)
28 28
 from django.utils import timezone, translation, unittest
@@ -746,7 +746,7 @@ def custom_key_func(key, key_prefix, version):
746 746
     return 'CUSTOM-' + '-'.join([key_prefix, str(version), key])
747 747
 
748 748
 
749  
-class DBCacheTests(BaseCacheTests, TestCase):
  749
+class DBCacheTests(BaseCacheTests, TransactionTestCase):
750 750
     backend_name = 'django.core.cache.backends.db.DatabaseCache'
751 751
 
752 752
     def setUp(self):

0 notes on commit 0a272e4

Please sign in to comment.
Something went wrong with that request. Please try again.