Fixed #22414 -- Ensured that LiveServerTestCase closes connections.

This commit is contained in:
Chris Jerdonek 2016-08-19 09:47:41 -07:00 committed by Tim Graham
parent 7b08e01c13
commit f6cd669ff2
3 changed files with 33 additions and 2 deletions

View file

@ -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()