Fixed test failure on Postgres that was added in r16510.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16512 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jannis Leidel 2011-07-05 09:40:29 +00:00
parent 90b6181657
commit 2b2bec0cc9
1 changed files with 17 additions and 16 deletions

View File

@ -2,6 +2,7 @@
# Unit tests for cache framework
# Uses whatever cache backend is set in the test settings file.
from __future__ import with_statement
import hashlib
import os
@ -775,8 +776,8 @@ class DBCacheRouter(object):
class CreateCacheTableForDBCacheTests(unittest.TestCase):
@override_settings(DEBUG=True)
def test_createcachetable_observes_database_router(self):
with override_settings(DEBUG=True):
old_routers = router.routers
try:
router.routers = [DBCacheRouter()]