python-django FTBFS with Python 3.11.4 with the following test failures: ====================================================================== ERROR: test_validators (validators.tests.TestValidators.test_validators) [URLValidator] (value='http://[::1:2::3]:8080/') ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/unittest/case.py", line 57, in testPartExecutor yield File "/usr/lib/python3.11/unittest/case.py", line 538, in subTest yield File "/<>/tests/validators/tests.py", line 354, in test_validators validator(value) File "/<>/django/core/validators.py", line 132, in __call__ host_match = re.search(r'^\[(.+)\](?::\d{2,5})?$', urlsplit(value).netloc) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/parse.py", line 500, in urlsplit _check_bracketed_host(bracketed_host) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/parse.py", line 446, in _check_bracketed_host ip = ipaddress.ip_address(hostname) # Throws Value Error if not IPv6 or IPv4 ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/ipaddress.py", line 54, in ip_address raise ValueError(f'{address!r} does not appear to be an IPv4 or IPv6 address') ^^^^^^^^^^^^^^^^^ ValueError: '::1:2::3' does not appear to be an IPv4 or IPv6 address ====================================================================== ERROR: test_value_placeholder_with_char_field (forms_tests.tests.test_validators.ValidatorCustomMessageTests.test_value_placeholder_with_char_field) [URLValidator] (value='http://[::1:2::3]/') ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python3.11/unittest/case.py", line 57, in testPartExecutor yield File "/usr/lib/python3.11/unittest/case.py", line 538, in subTest yield File "/<>/tests/forms_tests/tests/test_validators.py", line 108, in test_value_placeholder_with_char_field self.assertIs(form.is_valid(), False) ^^^^^^^^^^^^^^^^^ File "/<>/django/forms/forms.py", line 175, in is_valid return self.is_bound and not self.errors ^^^^^^^^^^^^^^^^^ File "/<>/django/forms/forms.py", line 170, in errors self.full_clean() File "/<>/django/forms/forms.py", line 372, in full_clean self._clean_fields() ^^^^^^^^^^^^^^^^^ File "/<>/django/forms/forms.py", line 390, in _clean_fields value = field.clean(value) ^^^^^^^^^^^^^^^^^ File "/<>/django/forms/fields.py", line 151, in clean self.run_validators(value) ^^^^^^^^^^^^^^^^^ File "/<>/django/forms/fields.py", line 136, in run_validators v(value) File "/<>/django/core/validators.py", line 132, in __call__ host_match = re.search(r'^\[(.+)\](?::\d{2,5})?$', urlsplit(value).netloc) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/parse.py", line 500, in urlsplit _check_bracketed_host(bracketed_host) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/urllib/parse.py", line 446, in _check_bracketed_host ip = ipaddress.ip_address(hostname) # Throws Value Error if not IPv6 or IPv4 ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/ipaddress.py", line 54, in ip_address raise ValueError(f'{address!r} does not appear to be an IPv4 or IPv6 address') ^^^^^^^^^^^^^^^^^ ValueError: '::1:2::3' does not appear to be an IPv4 or IPv6 address ----------------------------------------------------------------------