summaryrefslogtreecommitdiff
path: root/tests/utils_tests/test_html.py
diff options
context:
space:
mode:
authorMehraz Hossain Rumman <59512321+MehrazRumman@users.noreply.github.com>2025-11-06 04:05:54 +0600
committerGitHub <noreply@github.com>2025-11-05 17:05:54 -0500
commit125b63ca745bace1e098ed3c7362d59136f68a8b (patch)
treefed5b83d19295074a8bdedcf3b14b0373402e0c5 /tests/utils_tests/test_html.py
parentdfcc662cf8fd7f897ddcdfeaf5cb4ae6c963ebf8 (diff)
Fixed #36710 -- Fixed a regression in urlize for multipart domain names.
Thanks Mehraz Hossain Rumman for the report and Bruno Alla for the triage. Regression in a9fe98d5bd4212d069afe8316101984aadecfbb2.
Diffstat (limited to 'tests/utils_tests/test_html.py')
-rw-r--r--tests/utils_tests/test_html.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/utils_tests/test_html.py b/tests/utils_tests/test_html.py
index bf00d14496..b388d3ce52 100644
--- a/tests/utils_tests/test_html.py
+++ b/tests/utils_tests/test_html.py
@@ -455,6 +455,10 @@ class TestUtilsHtml(SimpleTestCase):
'<a href="mailto:idna-2008@%DE%89%DE%A8%DE%80%DE%A7%DE%83%DE%AA.ex'
'ample.mv">idna-2008@މިހާރު.example.mv</a>',
),
+ (
+ "host.djangoproject.com",
+ '<a href="https://host.djangoproject.com">host.djangoproject.com</a>',
+ ),
)
for value, output in tests:
with self.subTest(value=value):