mirror of
				https://github.com/django/django.git
				synced 2025-10-30 17:16:10 +00:00 
			
		
		
		
	Fixed #32762 -- Fixed locale reset in compilemessages test.
Reset the `LC_ALL` override value in the test environment to ensure that locale values the calling environment are not used.
This commit is contained in:
		
				
					committed by
					
						 Carlton Gibson
						Carlton Gibson
					
				
			
			
				
	
			
			
			
						parent
						
							9e4780deda
						
					
				
				
					commit
					0d67481a66
				
			| @@ -193,7 +193,7 @@ class CompilationErrorHandling(MessageCompilationTests): | ||||
|         # po file contains invalid msgstr content (triggers non-ascii error content). | ||||
|         # Make sure the output of msgfmt is unaffected by the current locale. | ||||
|         env = os.environ.copy() | ||||
|         env.update({'LANG': 'C'}) | ||||
|         env.update({'LC_ALL': 'C'}) | ||||
|         with mock.patch('django.core.management.utils.run', lambda *args, **kwargs: run(*args, env=env, **kwargs)): | ||||
|             cmd = MakeMessagesCommand() | ||||
|             if cmd.gettext_version < (0, 18, 3): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user