Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 87ea38cc9e5ed484538427854121c8614b50802f 1 parent 3ea65d1
@apollo13 apollo13 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tests/cache/tests.py
View
2  tests/cache/tests.py
@@ -1063,7 +1063,7 @@ def test_invalid_keys(self):
# 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

0 comments on commit 87ea38c

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