mirror of
https://github.com/django/django.git
synced 2025-08-03 02:23:12 +00:00
Fixed #22414 -- Ensured that LiveServerTestCase closes connections.
This commit is contained in:
parent
7b08e01c13
commit
f6cd669ff2
3 changed files with 33 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue