summaryrefslogtreecommitdiff
path: root/tests/stdlib
diff options
context:
space:
mode:
authorRyan Williams <rdw@lindenlab.com>2010-01-29 17:46:45 -0800
committerRyan Williams <rdw@lindenlab.com>2010-01-29 17:46:45 -0800
commit88e2387322da7fae20a05e5e87c1bdce655f23d1 (patch)
tree1e00e5709a1b095b46f8c4fb64c90ace33b8c77b /tests/stdlib
parent715b2ced5239bbada84c06f488b9c8dda8180230 (diff)
downloadeventlet-88e2387322da7fae20a05e5e87c1bdce655f23d1.tar.gz
First cut of eventlet.green.subprocess module. Added stdlib tests as well. Fixed GreenPipe's incorrect assumption that all callers would use a buflen argument to read().
Diffstat (limited to 'tests/stdlib')
-rw-r--r--tests/stdlib/test_subprocess.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/stdlib/test_subprocess.py b/tests/stdlib/test_subprocess.py
new file mode 100644
index 0000000..51253c3
--- /dev/null
+++ b/tests/stdlib/test_subprocess.py
@@ -0,0 +1,11 @@
+from eventlet import patcher
+from eventlet.green import subprocess
+from eventlet.green import time
+
+patcher.inject('test.test_subprocess',
+ globals(),
+ ('subprocess', subprocess),
+ ('time', time))
+
+if __name__ == "__main__":
+ test_main()