Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-updates > by-pkgid > 05cb0e982c3387afdb1d2b5f913d9e82 > files > 61

python-eventlet-doc-0.24.1-1.1.mga7.noarch.rpm

# 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')