summaryrefslogtreecommitdiff
path: root/tests/admin_scripts
diff options
context:
space:
mode:
authorJohanan Oppong Amoateng <johananoppongamoateng2001@gmail.com>2025-03-20 10:22:07 +0000
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-03-21 10:23:13 +0100
commit321a5651a3928a70127b510b6aa9ea92dc8c721a (patch)
tree3d43ea9aca4273366769b918399e2fe9b4031254 /tests/admin_scripts
parentd2b1ec551567c208abfdd21b27ff6d08ae1a6371 (diff)
[5.2.x] Fixed #36266 -- Renamed HIDE_PRODUCTION_WARNING environment variable to DJANGO_RUNSERVER_HIDE_WARNING.
Backport of 5adadf6e8c74ab14d432e9d682ca1914789386de from main.
Diffstat (limited to 'tests/admin_scripts')
-rw-r--r--tests/admin_scripts/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py
index 5d8a5ec97e..e4900eefd5 100644
--- a/tests/admin_scripts/tests.py
+++ b/tests/admin_scripts/tests.py
@@ -1630,7 +1630,7 @@ class ManageRunserver(SimpleTestCase):
self.output.getvalue(),
)
- @mock.patch.dict(os.environ, {"HIDE_PRODUCTION_WARNING": "true"})
+ @mock.patch.dict(os.environ, {"DJANGO_RUNSERVER_HIDE_WARNING": "true"})
def test_hide_production_warning_with_environment_variable(self):
self.cmd.addr = "0"
self.cmd._raw_ipv6 = False