Skip to content

Commit 171580c

Browse files
committed
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] python/cpython#103848 Change-Id: Ibd3d24e07f0c5670224b3e186b329c207666a2ab Signed-off-by: Stephen Finucane <[email protected]>
1 parent b18848b commit 171580c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

taskflow/tests/unit/test_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ def test_port_provided(self):
154154
self.assertEqual('', parsed.path)
155155

156156
def test_ipv6_host(self):
157-
url = "rsync://[2001:db8:0:1]:873"
157+
url = "rsync://[2001:db8:0:1::2]:873"
158158
parsed = misc.parse_uri(url)
159159
self.assertEqual('rsync', parsed.scheme)
160-
self.assertEqual('2001:db8:0:1', parsed.hostname)
160+
self.assertEqual('2001:db8:0:1::2', parsed.hostname)
161161
self.assertEqual(873, parsed.port)
162162

163163
def test_user_password(self):

0 commit comments

Comments
 (0)