39 | | |
40 | | ====================================================================== |
41 | | ERROR [0.003s]: test_country_using_city_database (gis_tests.test_geoip2.GeoIP2Test) (query=IPv6Address('::ffff:27d:a0d8')) |
42 | | ---------------------------------------------------------------------- |
43 | | Traceback (most recent call last): |
44 | | File "/home/jenkins/workspace/pull-requests-focal/database/mysql_gis/label/focal-pr/python/python3.10/django/core/validators.py", line 305, in validate_ipv4_address |
45 | | ipaddress.IPv4Address(value) |
46 | | File "/usr/lib/python3.10/ipaddress.py", line 1305, in __init__ |
47 | | self._ip = self._ip_int_from_string(addr_str) |
48 | | File "/usr/lib/python3.10/ipaddress.py", line 1192, in _ip_int_from_string |
49 | | raise AddressValueError("Expected 4 octets in %r" % ip_str) |
50 | | ipaddress.AddressValueError: Expected 4 octets in '::ffff:27d:a0d8' |
51 | | |
52 | | During handling of the above exception, another exception occurred: |
53 | | |
54 | | Traceback (most recent call last): |
55 | | File "/home/jenkins/workspace/pull-requests-focal/database/mysql_gis/label/focal-pr/python/python3.10/django/core/validators.py", line 325, in validate_ipv46_address |
56 | | validate_ipv4_address(value) |
57 | | File "/home/jenkins/workspace/pull-requests-focal/database/mysql_gis/label/focal-pr/python/python3.10/django/core/validators.py", line 307, in validate_ipv4_address |
58 | | raise ValidationError( |
59 | | django.core.exceptions.ValidationError: ['Enter a valid IPv4 address.'] |
60 | | |
61 | | During handling of the above exception, another exception occurred: |
62 | | |
63 | | Traceback (most recent call last): |
64 | | File "/home/jenkins/workspace/pull-requests-focal/database/mysql_gis/label/focal-pr/python/python3.10/tests/gis_tests/test_geoip2.py", line 145, in test_country_using_city_database |
65 | | self.assertEqual(g.country(query), self.expected_country) |
66 | | File "/home/jenkins/workspace/pull-requests-focal/database/mysql_gis/label/focal-pr/python/python3.10/django/contrib/gis/geoip2.py", line 207, in country |
67 | | response = self._query(query, require_city=False) |
68 | | File "/home/jenkins/workspace/pull-requests-focal/database/mysql_gis/label/focal-pr/python/python3.10/django/contrib/gis/geoip2.py", line 157, in _query |
69 | | validate_ipv46_address(query) |
70 | | File "/home/jenkins/workspace/pull-requests-focal/database/mysql_gis/label/focal-pr/python/python3.10/django/core/validators.py", line 328, in validate_ipv46_address |
71 | | validate_ipv6_address(value) |
72 | | File "/home/jenkins/workspace/pull-requests-focal/database/mysql_gis/label/focal-pr/python/python3.10/django/core/validators.py", line 315, in validate_ipv6_address |
73 | | if not is_valid_ipv6_address(value): |
74 | | File "/home/jenkins/workspace/pull-requests-focal/database/mysql_gis/label/focal-pr/python/python3.10/django/utils/ipv6.py", line 59, in is_valid_ipv6_address |
75 | | _ipv6_address_from_str(ip_str) |
76 | | File "/home/jenkins/workspace/pull-requests-focal/database/mysql_gis/label/focal-pr/python/python3.10/django/utils/ipv6.py", line 10, in _ipv6_address_from_str |
77 | | if len(ip_str) > max_length: |
78 | | TypeError: object of type 'IPv6Address' has no len() |