fix good_host_ports iteration

This commit is contained in:
Jeremy McMillan 2019-01-05 18:30:24 -06:00 committed by Pedro Algarvio
parent c5a5b34fc4
commit de823fd3ae

View file

@ -229,7 +229,7 @@ class NetworkTestCase(TestCase):
'2001:0db8:0370::7334]:1234',
'2001:0db8:0370:0:a:b:c:d:1234'
]
for host_port, assertion_value in good_host_ports:
for host_port, assertion_value in good_host_ports.items():
host = port = e = None
try:
host, port = network.parse_host_port(host_port)