mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #32437 -- Fixed cleaning up ALLOWED_HOSTS in LiveServerTestCase on setUpClass() failure.
This commit is contained in:
committed by
Mariusz Felisiak
parent
e412b28845
commit
694deff82f
@@ -1573,11 +1573,12 @@ class LiveServerTestCase(TransactionTestCase):
|
||||
for conn in cls.server_thread.connections_override.values():
|
||||
conn.dec_thread_sharing()
|
||||
|
||||
cls._live_server_modified_settings.disable()
|
||||
super().tearDownClass()
|
||||
|
||||
@classmethod
|
||||
def tearDownClass(cls):
|
||||
cls._tearDownClassInternal()
|
||||
cls._live_server_modified_settings.disable()
|
||||
super().tearDownClass()
|
||||
|
||||
|
||||
class SerializeMixin:
|
||||
|
||||
Reference in New Issue
Block a user