Corrected warning filter in test_client_regress

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15994 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2011-04-02 08:45:54 +00:00
parent 027e3b554c
commit 27efda5f5b
1 changed files with 1 additions and 2 deletions

View File

@ -886,8 +886,7 @@ class ResponseTemplateDeprecationTests(TestCase):
""" """
def setUp(self): def setUp(self):
self.save_warnings_state() self.save_warnings_state()
warnings.filterwarnings('ignore', category=DeprecationWarning, warnings.filterwarnings('ignore', category=DeprecationWarning)
module='django.test.client')
def tearDown(self): def tearDown(self):
self.restore_warnings_state() self.restore_warnings_state()