Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit b6f3060

Browse files
committed
Update test cases to reflect that ipv6 addresses must be surrounded by brackets when passed into the constructor
1 parent b779e33 commit b6f3060

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/test_http11.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def test_initialization_proxy_with_separate_port(self):
9797
assert c.proxy_port == 8443
9898

9999
def test_initialization_with_ipv6_addresses_proxy_inline_port(self):
100-
c = HTTP11Connection('abcd:dcba::1234', proxy_host='[ffff:aaaa::1]:8443')
100+
c = HTTP11Connection('[abcd:dcba::1234]', proxy_host='[ffff:aaaa::1]:8443')
101101

102102
assert c.host == 'abcd:dcba::1234'
103103
assert c.port == 80

test/test_hyper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def test_connections_can_parse_proxy_hosts_and_ports(self):
6464
assert c.proxy_port == 8443
6565

6666
def test_connections_can_parse_ipv6_hosts_and_ports(self):
67-
c = HTTP20Connection('abcd:dcba::1234',
67+
c = HTTP20Connection('[abcd:dcba::1234]',
6868
proxy_host='[ffff:aaaa::1]:8443')
6969

7070
assert c.host == 'abcd:dcba::1234'

0 commit comments

Comments
 (0)