Commit ab4e1841 authored by Denis Bilenko's avatar Denis Bilenko

test__socket_dns.py: print more information about what's going when -v flag is passed

parent 2f091015
......@@ -24,10 +24,14 @@ class TestCase(greentest.TestCase):
def _test_gethostbyname(self, hostname, check_ip=None):
try:
if VERBOSE:
print 'real_socket.gethostbyname(%r)' % (hostname, )
real_ip = real_socket.gethostbyname(hostname)
except Exception, ex:
real_ip = ex
try:
if VERBOSE:
print 'gevent.socket.gethostbyname(%r)' % (hostname, )
ip = gethostbyname(hostname)
except Exception, ex:
ip = ex
......
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