summaryrefslogtreecommitdiff
path: root/tests/patcher_test_greenthreadwrapper_join.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/patcher_test_greenthreadwrapper_join.py')
-rw-r--r--tests/patcher_test_greenthreadwrapper_join.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/patcher_test_greenthreadwrapper_join.py b/tests/patcher_test_greenthreadwrapper_join.py
new file mode 100644
index 0000000..20918c2
--- /dev/null
+++ b/tests/patcher_test_greenthreadwrapper_join.py
@@ -0,0 +1,21 @@
+# no standard tests in this file, ignore
+__test__ = False
+
+if __name__ == '__main__':
+ import eventlet
+ eventlet.monkey_patch()
+ import threading
+
+ t2 = None
+
+ def test():
+ def test2():
+ global t2
+ t2 = threading.currentThread()
+ eventlet.spawn(test2)
+
+ t = eventlet.spawn(test)
+ t.wait()
+
+ print(repr(t2))
+ t2.join()