  from django.utils import translation
  
  
  @override_settings(
      USE_I18N=True,
      LOCALE_PATHS=(
          os.path.join(os.path.dirname(upath(__file__)), 'locale'),
 
</s> remove class TranslationTests(TestCase):
 </s> add class TranslationTests(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 ResolutionOrderI18NTests(TestCase):
 </s> add class ResolutionOrderI18NTests(TransRealMixin, TestCase):
from i18n import TransRealMixin

  from django.utils import translation
  
from i18n import TransRealMixin

  
  @override_settings(
      USE_I18N=True,
      LOCALE_PATHS=(
          os.path.join(os.path.dirname(upath(__file__)), 'locale'),
keep add keep keep keep keep keep
 Added TransRealMixin to fix i18n global state pollution in the test suite 
tests/i18n/contenttypes/tests.py