summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Apolloner <florian@apolloner.eu>2013-11-24 12:08:41 +0100
committerFlorian Apolloner <florian@apolloner.eu>2013-11-24 12:08:41 +0100
commit87ea38cc9e5ed484538427854121c8614b50802f (patch)
tree2ad137b885cd937da250500d3d0e5ddb7722f202
parent3ea65d1f68f9da9be51695d030349146c1ad0248 (diff)
Don't fail if there is no memcached backend active.
-rw-r--r--tests/cache/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cache/tests.py b/tests/cache/tests.py
index 25a95f81ac..fc7154c987 100644
--- a/tests/cache/tests.py
+++ b/tests/cache/tests.py
@@ -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