diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-03-21 21:38:24 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-03-21 21:38:24 +0100 |
| commit | ad83d37bf8e47a9704948df3035e09a5e1584c04 (patch) | |
| tree | 46b37e2bfa51ec63af4d7f79fec30e20f80affa1 /tests/httpwrappers | |
| parent | 06160cb945e35f7d58e2313e23fb6be70d5b47b7 (diff) | |
Removed useless warning silencing.
If memory serves, the corresponding warning disappeared in Django 1.7.
Diffstat (limited to 'tests/httpwrappers')
| -rw-r--r-- | tests/httpwrappers/tests.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/httpwrappers/tests.py b/tests/httpwrappers/tests.py index 9dcc054a64..9e41780ab4 100644 --- a/tests/httpwrappers/tests.py +++ b/tests/httpwrappers/tests.py @@ -6,7 +6,6 @@ import json import os import pickle import unittest -import warnings from django.core.exceptions import SuspiciousOperation from django.core.serializers.json import DjangoJSONEncoder @@ -18,7 +17,6 @@ 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,9 +559,7 @@ class FileCloseTests(TestCase): file1 = open(filename) r = HttpResponse(file1) self.assertFalse(file1.closed) - with warnings.catch_warnings(): - warnings.simplefilter("ignore", RemovedInDjango18Warning) - list(r) + list(r) self.assertFalse(file1.closed) r.close() self.assertTrue(file1.closed) |
