Source: python-django Version: 3:3.2.19-1 Severity: serious Tags: upstream ftbfs
Dear Maintainer, Your package FTBFS in unstable due to 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 "/build/python-django-3.2.19/tests/validators/tests.py", line 354, in test_validators validator(value) File "/build/python-django-3.2.19/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 "/build/python-django-3.2.19/tests/forms_tests/tests/test_validators.py", line 108, in test_value_placeholder_with_char_field self.assertIs(form.is_valid(), False) ^^^^^^^^^^^^^^^^^ File "/build/python-django-3.2.19/django/forms/forms.py", line 175, in is_valid return self.is_bound and not self.errors ^^^^^^^^^^^^^^^^^ File "/build/python-django-3.2.19/django/forms/forms.py", line 170, in errors self.full_clean() File "/build/python-django-3.2.19/django/forms/forms.py", line 372, in full_clean self._clean_fields() ^^^^^^^^^^^^^^^^^ File "/build/python-django-3.2.19/django/forms/forms.py", line 390, in _clean_fields value = field.clean(value) ^^^^^^^^^^^^^^^^^ File "/build/python-django-3.2.19/django/forms/fields.py", line 151, in clean self.run_validators(value) ^^^^^^^^^^^^^^^^^ File "/build/python-django-3.2.19/django/forms/fields.py", line 136, in run_validators v(value) File "/build/python-django-3.2.19/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 ---------------------------------------------------------------------- Ran 14681 tests in 310.476s FAILED (errors=2, skipped=1141, expected failures=4) Kind Regards, Bas