mirror of
https://github.com/django/django.git
synced 2024-12-01 15:42:04 +01:00
Don't fail if there is no memcached backend active.
This commit is contained in:
parent
3ea65d1f68
commit
87ea38cc9e
2
tests/cache/tests.py
vendored
2
tests/cache/tests.py
vendored
@ -1063,7 +1063,7 @@ class MemcachedCacheTests(BaseCacheTests, TestCase):
|
|||||||
|
|
||||||
# Explicitly display a skipped test if no configured cache uses MemcachedCache
|
# Explicitly display a skipped test if no configured cache uses MemcachedCache
|
||||||
@unittest.skipUnless(
|
@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")
|
"cache with python-memcached library not available")
|
||||||
def test_memcached_uses_highest_pickle_version(self):
|
def test_memcached_uses_highest_pickle_version(self):
|
||||||
# Regression test for #19810
|
# Regression test for #19810
|
||||||
|
Loading…
Reference in New Issue
Block a user