summaryrefslogtreecommitdiff
path: root/tests/patcher_test_greenthreadwrapper_is_daemon.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/patcher_test_greenthreadwrapper_is_daemon.py')
-rw-r--r--tests/patcher_test_greenthreadwrapper_is_daemon.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/patcher_test_greenthreadwrapper_is_daemon.py b/tests/patcher_test_greenthreadwrapper_is_daemon.py
new file mode 100644
index 0000000..ab74fc0
--- /dev/null
+++ b/tests/patcher_test_greenthreadwrapper_is_daemon.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(t.is_daemon())
+ print(t.isDaemon())
+
+ t = eventlet.spawn(test)
+ t.wait()