1
0
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:
Chris Jerdonek
2021-02-11 05:43:36 -08:00
committed by Mariusz Felisiak
parent e412b28845
commit 694deff82f
2 changed files with 40 additions and 2 deletions

View File

@@ -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: