diff options
Diffstat (limited to 'django')
| -rw-r--r-- | django/test/testcases.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/django/test/testcases.py b/django/test/testcases.py index d064b47e9b..dfa4f41fb5 100644 --- a/django/test/testcases.py +++ b/django/test/testcases.py @@ -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: |
