diff options
| author | Claude Paroz <claude@2xlibre.net> | 2014-02-26 22:48:20 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2014-03-08 09:57:40 +0100 |
| commit | 210d0489c5daad56b806f8165f9fe09fb3c2a019 (patch) | |
| tree | f16c665e94669288fec0c3712a5639e9ad1ad1a7 /tests/httpwrappers | |
| parent | 70ec4d776ef0e68960ccee21476b8654e9399f53 (diff) | |
Fixed #21188 -- Introduced subclasses for to-be-removed-in-django-XX warnings
Thanks Anssi Kääriäinen for the idea and Simon Charette for the
review.
Diffstat (limited to 'tests/httpwrappers')
| -rw-r--r-- | tests/httpwrappers/tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/httpwrappers/tests.py b/tests/httpwrappers/tests.py index 20b95d101b..9dcc054a64 100644 --- a/tests/httpwrappers/tests.py +++ b/tests/httpwrappers/tests.py @@ -18,6 +18,7 @@ from django.http import (QueryDict, HttpResponse, HttpResponseRedirect, SimpleCookie, BadHeaderError, JsonResponse, parse_cookie) from django.test import TestCase +from django.utils.deprecation import RemovedInDjango18Warning from django.utils.encoding import smart_str, force_text from django.utils.functional import lazy from django.utils._os import upath @@ -561,7 +562,7 @@ class FileCloseTests(TestCase): r = HttpResponse(file1) self.assertFalse(file1.closed) with warnings.catch_warnings(): - warnings.simplefilter("ignore", DeprecationWarning) + warnings.simplefilter("ignore", RemovedInDjango18Warning) list(r) self.assertFalse(file1.closed) r.close() |
