Skip to content

Commit

Permalink
Randomized KEY_PREFIX in caches test to prevent failures during paral…
Browse files Browse the repository at this point in the history
…lel testruns.
  • Loading branch information
apollo13 committed Nov 24, 2013
1 parent ce5ad81 commit 101da92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/cache/tests.py
Expand Up @@ -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'},
Expand Down

0 comments on commit 101da92

Please sign in to comment.