Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed useless warning silencing.

If memory serves, the corresponding warning disappeared in Django 1.7.
  • Loading branch information...
commit ad83d37bf8e47a9704948df3035e09a5e1584c04 1 parent 06160cb
@aaugustin aaugustin authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 tests/httpwrappers/tests.py
View
6 tests/httpwrappers/tests.py
@@ -6,7 +6,6 @@
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 @@
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 @@ def test_response(self):
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)
Please sign in to comment.
Something went wrong with that request. Please try again.