Add python-eventlet package to MOS 9.0 repository
[packages/trusty/python-eventlet.git] / python-eventlet / tests / isolated / patcher_threading_condition.py
1 # Issue #185: test threading.Condition with monkey-patching
2 __test__ = False
3
4 if __name__ == '__main__':
5     import eventlet
6     eventlet.monkey_patch()
7
8     import threading
9
10     def func(c):
11         with c:
12             c.notify()
13
14     c = threading.Condition()
15     with c:
16         t = threading.Thread(target=func, args=(c,))
17         t.start()
18         c.wait()
19
20     print('pass')