Commit 938a2804 authored by Denis Bilenko's avatar Denis Bilenko

test_queue.py: use gevent.event.Event instead of (patched) threading.Event

- to check gevent.Event API conformance
parent c2b1a296
...@@ -15,7 +15,9 @@ class _TriggerThread(threading.Thread): ...@@ -15,7 +15,9 @@ class _TriggerThread(threading.Thread):
def __init__(self, fn, args): def __init__(self, fn, args):
self.fn = fn self.fn = fn
self.args = args self.args = args
self.startedEvent = threading.Event() #self.startedEvent = threading.Event()
from gevent.event import Event
self.startedEvent = Event
threading.Thread.__init__(self) threading.Thread.__init__(self)
def run(self): def run(self):
......
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