Browse files

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

  • Loading branch information...
1 parent 3ea65d1 commit 87ea38cc9e5ed484538427854121c8614b50802f @apollo13 apollo13 committed Nov 24, 2013
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.