diff --git a/tests/http_utils/tests.py b/tests/http_utils/tests.py index 3225bfebf1c..d88afb951c6 100644 --- a/tests/http_utils/tests.py +++ b/tests/http_utils/tests.py @@ -76,6 +76,7 @@ class HttpUtilTests(TestCase): host is not in ALLOWED_HOSTS. Issue #20472 """ request = HttpRequest() + def bomb(): self.assertTrue(False) request.get_host = bomb