0
0
mirror of https://github.com/django/django.git synced 2024-11-29 14:46:18 +01:00

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

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