              with translation.override('pl'):
                  self.assertEqual(get_language(), 'pl')
              self.assertEqual(get_language(), 'de')
              with translation.override(None):
                  self.assertEqual(get_language(), settings.LANGUAGE_CODE)
              self.assertEqual(get_language(), 'de')
          finally:
              deactivate()
  
      def test_override_decorator(self):
 
</s> remove             self.assertEqual(get_language(), settings.LANGUAGE_CODE)
 </s> add             self.assertEqual(get_language(), None) </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             # 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 from django.conf import settings
 </s> add 
                self.assertEqual(get_language(), None)
              with translation.override('pl'):
                  self.assertEqual(get_language(), 'pl')
              self.assertEqual(get_language(), 'de')
              with translation.override(None):
                self.assertEqual(get_language(), None)
              self.assertEqual(get_language(), 'de')
          finally:
              deactivate()
  
      def test_override_decorator(self):
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/i18n/tests.py