Commit 6b826131 authored by Denis Bilenko's avatar Denis Bilenko

test__issue58.py: support python 2.5

--HG--
extra : transplant_source : I8%8F%CF%9C%8D%84%B1%D9%29%A4E%8C%3DHf%DD%F6%9E%E8
parent 0c952f10
......@@ -15,5 +15,8 @@ server = wsgi.WSGIServer(('', 0), error)
server.start()
conn = socket.create_connection(('127.0.0.1', server.server_port))
conn.sendall('GET / HTTP/1.1\r\nConnection: close\r\n\r\n')
with gevent.Timeout(0.1):
timeout = gevent.Timeout.start_new(0.1)
try:
conn.makefile(bufsize=1).read()
finally:
timeout.cancel()
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