Randomized KEY_PREFIX in caches test to prevent failures during parallel testruns.

This commit is contained in:
Florian Apolloner 2013-11-24 10:14:21 +01:00
parent ce5ad8199c
commit 101da92ebd
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ def custom_key_func(key, key_prefix, version):
_caches_setting_base = { _caches_setting_base = {
'default': {}, 'default': {},
'prefix': {'KEY_PREFIX': 'cacheprefix'}, 'prefix': {'KEY_PREFIX': 'cacheprefix{}'.format(os.getpid())},
'v2': {'VERSION': 2}, 'v2': {'VERSION': 2},
'custom_key': {'KEY_FUNCTION': custom_key_func}, 'custom_key': {'KEY_FUNCTION': custom_key_func},
'custom_key2': {'KEY_FUNCTION': 'cache.tests.custom_key_func'}, 'custom_key2': {'KEY_FUNCTION': 'cache.tests.custom_key_func'},