# HG changeset patch # User Augie Fackler # Date 1496076655 14400 # Node ID 5441a9d1fd502017517b3f5001d369d47da68095 # Parent debba0fa822e782dd2fb627b32a64d624b23c7fc test_push_command: avoid letting interface name in IPv6 address Subversion isn't a fan. diff --git a/tests/test_push_command.py b/tests/test_push_command.py --- a/tests/test_push_command.py +++ b/tests/test_push_command.py @@ -157,6 +157,12 @@ class PushTests(test_util.TestBase): # If we're connecting via IPv6 the need to put brackets around the # hostname in the URL. ipv6 = selected[0] == socket.AF_INET6 + + # Ditch any interface information since that's not helpful in + # a URL + if ipv6 and ':' in self.host and '%' in self.host: + self.host = self.host.rsplit('%', 1)[0] + urlfmt = 'svn://[%s]:%d/%s' if ipv6 else 'svn://%s:%d/%s' args = ['svnserve', '--daemon', '--foreground',