summaryrefslogtreecommitdiff
path: root/tests/cache
diff options
context:
space:
mode:
authorFlorian Apolloner <florian@apolloner.eu>2013-11-24 10:14:21 +0100
committerFlorian Apolloner <florian@apolloner.eu>2013-11-24 10:15:43 +0100
commit101da92ebdf913d60b114ff4ebeef6e776e8bc6e (patch)
treef1feec1000573fa432af7901036f6b9408e206f1 /tests/cache
parentce5ad8199c275c6fb87e4fe678532b8747bc196f (diff)
downloaddjango-101da92ebdf913d60b114ff4ebeef6e776e8bc6e.tar.gz
Randomized KEY_PREFIX in caches test to prevent failures during parallel testruns.
Diffstat (limited to 'tests/cache')
-rw-r--r--tests/cache/tests.py2
1 files changed, 1 insertions, 1 deletions
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'},