summaryrefslogtreecommitdiff
path: root/tests/patcher_test_tpool_simple.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/patcher_test_tpool_simple.py')
-rw-r--r--tests/patcher_test_tpool_simple.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/patcher_test_tpool_simple.py b/tests/patcher_test_tpool_simple.py
new file mode 100644
index 0000000..99a5e2b
--- /dev/null
+++ b/tests/patcher_test_tpool_simple.py
@@ -0,0 +1,11 @@
+# no standard tests in this file, ignore
+__test__ = False
+
+if __name__ == '__main__':
+ import eventlet
+ from eventlet import patcher
+ patcher.monkey_patch()
+ from eventlet import tpool
+ print("child {0}".format(tpool.execute(len, "hi")))
+ print("child {0}".format(tpool.execute(len, "hi2")))
+ tpool.killall()