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

if __name__ == '__main__':
    import eventlet
    eventlet.monkey_patch()
    from eventlet import patcher
    import threading
    _threading = patcher.original('threading')

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

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