From 101da92ebdf913d60b114ff4ebeef6e776e8bc6e Mon Sep 17 00:00:00 2001 From: Florian Apolloner Date: Sun, 24 Nov 2013 10:14:21 +0100 Subject: [PATCH] Randomized KEY_PREFIX in caches test to prevent failures during parallel testruns. --- tests/cache/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/cache/tests.py b/tests/cache/tests.py index 44524b0707..d01bb634aa 100644 --- a/tests/cache/tests.py +++ b/tests/cache/tests.py @@ -197,7 +197,7 @@ def custom_key_func(key, key_prefix, version): _caches_setting_base = { 'default': {}, - 'prefix': {'KEY_PREFIX': 'cacheprefix'}, + 'prefix': {'KEY_PREFIX': 'cacheprefix{}'.format(os.getpid())}, 'v2': {'VERSION': 2}, 'custom_key': {'KEY_FUNCTION': custom_key_func}, 'custom_key2': {'KEY_FUNCTION': 'cache.tests.custom_key_func'},