summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authormendespedro <windowsxpedro@gmail.com>2021-12-15 11:55:19 -0300
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-12-20 07:30:22 +0100
commite8b4feddc34ffe5759ec21da8fa027e86e653f1c (patch)
treee390fb07dad9bbe7a7d915c81b6c04ce7aeaf142 /tests
parent4fd3044ca0135da903a70dfb66992293f529ecf1 (diff)
Fixed #33367 -- Fixed URLValidator crash in some edge cases.
Diffstat (limited to 'tests')
-rw-r--r--tests/forms_tests/field_tests/test_urlfield.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/forms_tests/field_tests/test_urlfield.py b/tests/forms_tests/field_tests/test_urlfield.py
index 152456f216..187d44a050 100644
--- a/tests/forms_tests/field_tests/test_urlfield.py
+++ b/tests/forms_tests/field_tests/test_urlfield.py
@@ -100,6 +100,10 @@ class URLFieldTest(FormFieldAssertionsMixin, SimpleTestCase):
# even on domains that don't fail the domain label length check in
# the regex.
'http://%s' % ("X" * 200,),
+ # urlsplit() raises ValueError.
+ '////]@N.AN',
+ # Empty hostname.
+ '#@A.bO',
]
msg = "'Enter a valid URL.'"
for value in tests: