Commit 24b21c81 authored by Denis Bilenko's avatar Denis Bilenko

test__socket_dns.py: fix typo that caused trouble on systems without /etc/hosts

parent d82c1cbf
......@@ -120,7 +120,7 @@ class TestLocal(TestCase):
try:
etc_hosts = open('/etc/hosts').read()
except IOError:
data = ''
etc_hosts = ''
for ip, host in re.findall(r'^\s*(\d+\.\d+\.\d+\.\d+)\s+([^\s]+)', etc_hosts, re.M)[:10]:
func = get_test(ip, host)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment