Commit af7c042b authored by Denis Bilenko's avatar Denis Bilenko

api_test.py: 2.4 compatibility

parent 76af3ed1
......@@ -147,10 +147,11 @@ class TestApi(TestCase):
g = gevent.spawn(go)
try:
socket.tcp_server(server, client_connected)
except:
gevent.kill(g)
raise
try:
socket.tcp_server(server, client_connected)
except:
gevent.kill(g)
raise
finally:
gevent.sleep(0)
......
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