summaryrefslogtreecommitdiff
path: root/tests/patcher_test_threading_tpool.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/patcher_test_threading_tpool.py')
-rw-r--r--tests/patcher_test_threading_tpool.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/patcher_test_threading_tpool.py b/tests/patcher_test_threading_tpool.py
new file mode 100644
index 0000000..4cd3398
--- /dev/null
+++ b/tests/patcher_test_threading_tpool.py
@@ -0,0 +1,14 @@
+# no standard tests in this file, ignore
+__test__ = False
+
+if __name__ == '__main__':
+ import eventlet
+ eventlet.monkey_patch()
+ from eventlet import tpool
+ import threading
+
+ def test():
+ print(repr(threading.currentThread()))
+
+ tpool.execute(test)
+ print(len(threading._active))