diff options
| author | Aymeric Augustin <aymeric.augustin@polyconseil.fr> | 2012-05-03 15:27:01 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@polyconseil.fr> | 2012-05-03 15:27:01 +0200 |
| commit | e84f79f05113f546810c1908c7baef99fb1e874a (patch) | |
| tree | 4cb5f3e428caa894bd9acc06fc3cd6250b018715 /tests/regressiontests/cache/tests.py | |
| parent | 227cec686e512412f613c3d14743b85445765d92 (diff) | |
Fixed #18042 -- Advanced deprecation warnings.
Thanks Ramiro for the patch.
Diffstat (limited to 'tests/regressiontests/cache/tests.py')
| -rw-r--r-- | tests/regressiontests/cache/tests.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/regressiontests/cache/tests.py b/tests/regressiontests/cache/tests.py index 00ccda6102..16368c6fe9 100644 --- a/tests/regressiontests/cache/tests.py +++ b/tests/regressiontests/cache/tests.py @@ -1442,12 +1442,18 @@ def hello_world_view(request, value): ) class CacheMiddlewareTest(TestCase): + # The following tests will need to be modified in Django 1.6 to not use + # deprecated ways of using the cache_page decorator that will be removed in + # such version def setUp(self): self.factory = RequestFactory() self.default_cache = get_cache('default') self.other_cache = get_cache('other') + self.save_warnings_state() + warnings.filterwarnings('ignore', category=DeprecationWarning, module='django.views.decorators.cache') def tearDown(self): + self.restore_warnings_state() self.default_cache.clear() self.other_cache.clear() |
