Files
deb-python-eventlet/tests/isolated/patcher_threading_condition.py
Sergey Shepelev 7f08dfd250 little clean up
2016-02-12 20:42:03 +05:00

21 lines
382 B
Python

# Issue #185: test threading.Condition with monkey-patching
__test__ = False
if __name__ == '__main__':
import eventlet
eventlet.monkey_patch()
import threading
def func(c):
with c:
c.notify()
c = threading.Condition()
with c:
t = threading.Thread(target=func, args=(c,))
t.start()
c.wait()
print('pass')