From a693bbe0ac47c5ae36501bfd9f30ee28e723cb6c Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Thu, 27 Oct 2011 06:17:24 +0000 Subject: [PATCH] Fixed a test isolation problem that remained after r17042. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17043 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/cache/tests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/regressiontests/cache/tests.py b/tests/regressiontests/cache/tests.py index ee2c926699..bc0a05e4fe 100644 --- a/tests/regressiontests/cache/tests.py +++ b/tests/regressiontests/cache/tests.py @@ -1233,6 +1233,8 @@ class CacheI18nTest(TestCase): translation.activate('es') get_cache_data = FetchFromCacheMiddleware().process_request(request) self.assertEqual(get_cache_data.content, es_message) + # reset the language + translation.deactivate() CacheI18nTest = override_settings( CACHE_MIDDLEWARE_KEY_PREFIX='settingsprefix',