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

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

    def test():
        print(repr(threading.currentThread()))

    t = eventlet.spawn(test)
    t.wait()
    print(len(threading._active))