mirror of
https://github.com/django/django.git
synced 2025-08-02 10:02:41 +00:00
Refs #28478 -- Deprecated TestCase's allow_database_queries and multi_db in favor of databases.
This commit is contained in:
parent
647be06538
commit
8c775391b7
27 changed files with 391 additions and 109 deletions
|
@ -209,8 +209,7 @@ class LiveServerPort(LiveServerBase):
|
|||
"Acquired duplicate server addresses for server threads: %s" % self.live_server_url
|
||||
)
|
||||
finally:
|
||||
if hasattr(TestCase, 'server_thread'):
|
||||
TestCase.server_thread.terminate()
|
||||
TestCase.tearDownClass()
|
||||
|
||||
def test_specified_port_bind(self):
|
||||
"""LiveServerTestCase.port customizes the server's port."""
|
||||
|
@ -227,8 +226,7 @@ class LiveServerPort(LiveServerBase):
|
|||
'Did not use specified port for LiveServerTestCase thread: %s' % TestCase.port
|
||||
)
|
||||
finally:
|
||||
if hasattr(TestCase, 'server_thread'):
|
||||
TestCase.server_thread.terminate()
|
||||
TestCase.tearDownClass()
|
||||
|
||||
|
||||
class LiverServerThreadedTests(LiveServerBase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue