tests: Use valid IPv6 address
Python 3.11.4 [1] includes a fix for gh-103848 [2] and urllib.parse.urlsplit will now validate that bracketed IP addresses are valid IPv6 address. Fix this. [1] https://docs.python.org/release/3.11.4/whatsnew/changelog.html#python-3-11-4 [2] https://github.com/python/cpython/issues/103848 Change-Id: Ibd3d24e07f0c5670224b3e186b329c207666a2ab Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
parent
b18848b394
commit
171580c4d3
@ -154,10 +154,10 @@ class UriParseTest(test.TestCase):
|
||||
self.assertEqual('', parsed.path)
|
||||
|
||||
def test_ipv6_host(self):
|
||||
url = "rsync://[2001:db8:0:1]:873"
|
||||
url = "rsync://[2001:db8:0:1::2]:873"
|
||||
parsed = misc.parse_uri(url)
|
||||
self.assertEqual('rsync', parsed.scheme)
|
||||
self.assertEqual('2001:db8:0:1', parsed.hostname)
|
||||
self.assertEqual('2001:db8:0:1::2', parsed.hostname)
|
||||
self.assertEqual(873, parsed.port)
|
||||
|
||||
def test_user_password(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user