summaryrefslogtreecommitdiff
path: root/tests/patcher_test_greenthreadwrapper_is_alive.py
blob: c234bb34ce195e3cf183450cc2f09791d8f451a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# no standard tests in this file, ignore
__test__ = False

if __name__ == '__main__':
    import eventlet
    eventlet.monkey_patch()
    import threading

    def test():
        t = threading.currentThread()
        print(t.is_alive())
        print(t.isAlive())

    t = eventlet.spawn(test)
    t.wait()