mirror of
				https://github.com/django/django.git
				synced 2025-11-03 21:25:09 +00:00 
			
		
		
		
	Randomized KEY_PREFIX in caches test to prevent failures during parallel testruns.
This commit is contained in:
		
							parent
							
								
									ce5ad8199c
								
							
						
					
					
						commit
						101da92ebd
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								tests/cache/tests.py
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								tests/cache/tests.py
									
										
									
									
										vendored
									
									
								
							| 
						 | 
					@ -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'},
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue