summaryrefslogtreecommitdiff
path: root/tests/patcher_test_greenthreadwrapper_ident.py
blob: 7dc1f675567443a55ddfef9cffb2a7d24f61a926 (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(id(t._g))
        print(t.ident)

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