diff options
Diffstat (limited to 'tests/patcher_test_greenthreadwrapper_ident.py')
| -rw-r--r-- | tests/patcher_test_greenthreadwrapper_ident.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/patcher_test_greenthreadwrapper_ident.py b/tests/patcher_test_greenthreadwrapper_ident.py new file mode 100644 index 0000000..7dc1f67 --- /dev/null +++ b/tests/patcher_test_greenthreadwrapper_ident.py @@ -0,0 +1,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() |
