tests: patcher_test: let Popen search for true in PATH

As Edward George reported in https://github.com/eventlet/eventlet/pull/3
There is no /bin/true on Darwin, it is in /usr/bin/true instead.
So we use the fact that Popen() calls execvp(3) which searches for file in PATH.
This commit is contained in:
Sergey Shepelev
2012-12-17 17:23:16 +04:00
parent 738ac94165
commit db98ab2ed3

View File

@@ -285,7 +285,7 @@ class Subprocess(ProcessBase):
eventlet.monkey_patch()
from eventlet.green import subprocess
subprocess.Popen(['/bin/true'], stdin=subprocess.PIPE)
subprocess.Popen(['true'], stdin=subprocess.PIPE)
print "done"
"""
self.write_to_tempfile("newmod", new_mod)