summaryrefslogtreecommitdiff
path: root/tests/patcher_test_threading_patched.py
blob: 78ac9aacfb24fc4fc81f872469d30f408a1d4eb2 (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():
        print(repr(threading.currentThread()))

    t = threading.Thread(target=test)
    t.start()
    t.join()
    print(len(threading._active))