  import os
  
  from django.apps import apps
  from django.db import connection
  from django.conf import settings
  from django.core import management
  from django.core.management import BaseCommand, CommandError, find_commands
  from django.core.management.utils import find_command, popen_wrapper
  from django.test import SimpleTestCase, ignore_warnings
  from django.test.utils import captured_stderr, captured_stdout, extend_sys_path
 
</s> remove             # get_language returns settings.LANGUAGE_CODE for NullTranslations instances
            self.assertEqual(out.getvalue(), "%s\n" % settings.LANGUAGE_CODE)
 </s> add             self.assertEqual(out.getvalue(), "") </s> remove     def test_default_en_us_locale_set(self):
        # Forces en_us when set to true
 </s> add     def test_deactivate_locale_set(self):
        # Deactivate translation when set to true </s> remove             self.assertEqual(get_language(), settings.LANGUAGE_CODE)
 </s> add             self.assertEqual(get_language(), None) </s> remove                 self.assertEqual(get_language(), settings.LANGUAGE_CODE)
 </s> add                 self.assertEqual(get_language(), None)
  import os
  
  from django.apps import apps
  from django.db import connection

  from django.core import management
  from django.core.management import BaseCommand, CommandError, find_commands
  from django.core.management.utils import find_command, popen_wrapper
  from django.test import SimpleTestCase, ignore_warnings
  from django.test.utils import captured_stderr, captured_stdout, extend_sys_path
keep keep keep keep replace keep keep keep keep keep
 Fixed #24073 -- Returned None for get_language when translations are deactivated

This fixes a regression caused by f7c287fca9. Thanks Markus Holtermann
for identifying the regression. 
tests/user_commands/tests.py