Server did not fail.
cls.check_allowed_hosts(['testserver']) try: super().setUpClass() except RuntimeError: # LiveServerTestCase's change to ALLOWED_HOSTS should be reverted. cls.check_allowed_hosts(['testserver']) else: raise RuntimeError('Server did not fail.') cls.set_up_called = True @classmethod def tearDownClass(cls): # Make tearDownClass() a no-op because setUpClass() was already cleaned # up, and because the error inside setUpClass() was handled, which will # cause tearDownClass() to be called when it normally wouldn't.
Links to the raise (1)https://github.com/django/django/blob/7cca22964c09e8dafc313a400c428242404d527a/tests/servers/tests.py#L132
NO FIXES YET
Just press the button and we will add solution
to this exception as soon as possible
* As many users press the button, the faster we create a fix
Add a possible fix
Please authorize to post fix