mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +00:00
Used addCleanup() in tests where appropriate.
This commit is contained in:
parent
81ccf92f15
commit
d88ec42bd0
37 changed files with 121 additions and 240 deletions
|
|
@ -14,9 +14,7 @@ class WSGITest(SimpleTestCase):
|
|||
|
||||
def setUp(self):
|
||||
request_started.disconnect(close_old_connections)
|
||||
|
||||
def tearDown(self):
|
||||
request_started.connect(close_old_connections)
|
||||
self.addCleanup(request_started.connect, close_old_connections)
|
||||
|
||||
def test_get_wsgi_application(self):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue