Public bug reported:

On Ubuntu 22.04 LTS, python-django fails to build from source due to a
failing test.

Traceback error:

=====

ERROR: test_value_placeholder_with_char_field 
(forms_tests.tests.test_validators.ValidatorCustomMessageTests) [URLValidator] 
(value='http://[::1:2::3]/')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.10/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/usr/lib/python3.10/unittest/case.py", line 498, in subTest
    yield
  File "/<<PKGBUILDDIR>>/tests/forms_tests/tests/test_validators.py", line 108, 
in test_value_placeholder_with_char_field
    self.assertIs(form.is_valid(), False)
  File "/<<PKGBUILDDIR>>/django/forms/forms.py", line 175, in is_valid
    return self.is_bound and not self.errors
  File "/<<PKGBUILDDIR>>/django/forms/forms.py", line 170, in errors
    self.full_clean()
  File "/<<PKGBUILDDIR>>/django/forms/forms.py", line 372, in full_clean
    self._clean_fields()
  File "/<<PKGBUILDDIR>>/django/forms/forms.py", line 390, in _clean_fields
    value = field.clean(value)
  File "/<<PKGBUILDDIR>>/django/forms/fields.py", line 151, in clean
    self.run_validators(value)
  File "/<<PKGBUILDDIR>>/django/forms/fields.py", line 136, in run_validators
    v(value)
  File "/<<PKGBUILDDIR>>/django/core/validators.py", line 133, in __call__
    host_match = re.search(r'^\[(.+)\](?::\d{2,5})?$', urlsplit(value).netloc)
  File "/usr/lib/python3.10/urllib/parse.py", line 525, in urlsplit
    _check_bracketed_netloc(netloc)
  File "/usr/lib/python3.10/urllib/parse.py", line 460, in 
_check_bracketed_netloc
    _check_bracketed_host(hostname)
  File "/usr/lib/python3.10/urllib/parse.py", line 469, in _check_bracketed_host
    ip = ipaddress.ip_address(hostname) # Throws Value Error if not IPv6 or IPv4
  File "/usr/lib/python3.10/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

** Affects: python-django (Ubuntu)
     Importance: Undecided
     Assignee: Hlib Korzhynskyy (hlibk)
         Status: New

** Affects: python-django (Ubuntu Jammy)
     Importance: Undecided
     Assignee: Hlib Korzhynskyy (hlibk)
         Status: New

** Also affects: python-django (Ubuntu Jammy)
   Importance: Undecided
       Status: New

** Changed in: python-django (Ubuntu)
     Assignee: (unassigned) => Hlib Korzhynskyy (hlibk)

** Changed in: python-django (Ubuntu Jammy)
     Assignee: (unassigned) => Hlib Korzhynskyy (hlibk)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2100643

Title:
  FTBFS on jammy due to python3.10 update

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-django/+bug/2100643/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to