mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Used addCleanup() in tests where appropriate.
This commit is contained in:
@@ -32,9 +32,7 @@ class ASGITest(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)
|
||||
|
||||
async def test_get_asgi_application(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user