Don't fail if there is no memcached backend active.

This commit is contained in:
Florian Apolloner 2013-11-24 12:08:41 +01:00
parent 3ea65d1f68
commit 87ea38cc9e
1 changed files with 1 additions and 1 deletions

View File

@ -1063,7 +1063,7 @@ class MemcachedCacheTests(BaseCacheTests, TestCase):
# Explicitly display a skipped test if no configured cache uses MemcachedCache
@unittest.skipUnless(
memcached_params['BACKEND'] == 'django.core.cache.backends.memcached.MemcachedCache',
memcached_params.get('BACKEND') == 'django.core.cache.backends.memcached.MemcachedCache',
"cache with python-memcached library not available")
def test_memcached_uses_highest_pickle_version(self):
# Regression test for #19810