summaryrefslogtreecommitdiff
path: root/tests/isolated/patcher_subprocess.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/isolated/patcher_subprocess.py')
-rw-r--r--tests/isolated/patcher_subprocess.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/isolated/patcher_subprocess.py b/tests/isolated/patcher_subprocess.py
new file mode 100644
index 0000000..2b359a8
--- /dev/null
+++ b/tests/isolated/patcher_subprocess.py
@@ -0,0 +1,18 @@
+from __future__ import print_function
+
+# no standard tests in this file, ignore
+__test__ = False
+
+
+def main():
+ import sys
+ import eventlet
+ eventlet.monkey_patch()
+ from eventlet.green import subprocess
+
+ subprocess.Popen([sys.executable, '-c', ''], stdin=subprocess.PIPE)
+
+ print('pass')
+
+if __name__ == '__main__':
+ main()