Commit ac4f1ad6 authored by Denis Bilenko's avatar Denis Bilenko

test__socket_dns.py: add a few more prints for verbose mode

parent 967c7442
......@@ -56,15 +56,20 @@ class TestCase(greentest.TestCase):
for port in self.PORTS:
for args in self.getaddrinfo_args:
if VERBOSE:
print
print 'real_socket.getaddrinfo(%r, %r, %r)' % (hostname, port, args)
try:
real_ip = real_socket.getaddrinfo(hostname, port, *args)
if VERBOSE:
print ' returned %r' % (real_ip, )
except Exception, ex:
real_ip = ex
if VERBOSE:
print 'gevent.socket.getaddrinfo(%r, %r, %r)' % (hostname, port, args)
try:
ip = getaddrinfo(hostname, port, *args)
if VERBOSE:
print ' returned %r' % (ip, )
except Exception, ex:
ip = ex
if not self.equal(real_ip, ip):
......
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