+
+
+def test_universal_lines():
+ p = subprocess.Popen(
+ [sys.executable, '--version'],
+ shell=False,
+ stdout=subprocess.PIPE,
+ universal_newlines=True)
+ p.communicate(None)
+
+
+def test_patched_communicate_290():
+ # https://github.com/eventlet/eventlet/issues/290
+ # Certain order of import and monkey_patch breaks subprocess communicate()
+ # with AttributeError module `select` has no `poll` on Linux
+ # unpatched methods are removed for safety reasons in commit f63165c0e3
+ tests.run_isolated('subprocess_patched_communicate.py')