Commit b7d9e788 authored by Denis Bilenko's avatar Denis Bilenko

test_socket.py: use gevent's Queue and Event instead of those from (patched) threading

parent 938a2804
......@@ -98,10 +98,18 @@ class ThreadableTest:
self.server_ready.set()
def _setUp(self):
self.server_ready = threading.Event()
self.client_ready = threading.Event()
self.done = threading.Event()
self.queue = Queue.Queue(1)
#self.server_ready = threading.Event()
#self.client_ready = threading.Event()
#self.done = threading.Event()
#self.queue = Queue.Queue(1)
# monkey-patched threading.Event and threading.Queue work fine here too
# but let's test gevent classes
from gevent.event import Event
from gevent.queue import Queue
self.server_ready = Event()
self.client_ready = Event()
self.done = Event()
self.queue = Queue(1)
# Do some munging to start the client test.
methodname = self.id()
......
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