mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #22414 -- Ensured that LiveServerTestCase closes connections.
This commit is contained in:
committed by
Tim Graham
parent
7b08e01c13
commit
f6cd669ff2
@@ -153,4 +153,5 @@ class LiveServerPort(LiveServerBase):
|
||||
"Acquired duplicate server addresses for server threads: %s" % self.live_server_url
|
||||
)
|
||||
finally:
|
||||
TestCase.tearDownClass()
|
||||
if hasattr(TestCase, 'server_thread'):
|
||||
TestCase.server_thread.terminate()
|
||||
|
||||
Reference in New Issue
Block a user