  extended_locale_paths = settings.LOCALE_PATHS + (
      os.path.join(here, 'other', 'locale'),
  )
  
  class TranslationTests(TestCase):
  
      def test_override(self):
          activate('de')
          with translation.override('pl'):
              self.assertEqual(get_language(), 'pl')
 
</s> remove class ContentTypeTests(TestCase):
 </s> add class ContentTypeTests(TransRealMixin, TestCase): </s> remove class CountrySpecificLanguageTests(TestCase):
 </s> add class CountrySpecificLanguageTests(TransRealMixin, TestCase): </s> remove         # Okay, this is brutal, but we have no other choice to fully reset
        # the translation framework
        trans_real._active = local()
        trans_real._translations = {}
 </s> add         super(ResolutionOrderI18NTests, self).setUp() </s> remove class LocaleMiddlewareTests(TestCase):
 </s> add class LocaleMiddlewareTests(TransRealMixin, TestCase):
class TranslationTests(TransRealMixin, TestCase):
  extended_locale_paths = settings.LOCALE_PATHS + (
      os.path.join(here, 'other', 'locale'),
  )
  
class TranslationTests(TransRealMixin, TestCase):
  
      def test_override(self):
          activate('de')
          with translation.override('pl'):
              self.assertEqual(get_language(), 'pl')
keep keep keep keep replace keep keep keep keep keep
 Added TransRealMixin to fix i18n global state pollution in the test suite 
tests/i18n/tests.py