Commit 101da92e authored by Florian Apolloner's avatar Florian Apolloner
Browse files

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

parent ce5ad819
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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'},