From db98ab2ed3b7178dc5a2fa62c0ded042f00f352b Mon Sep 17 00:00:00 2001 From: Sergey Shepelev Date: Mon, 17 Dec 2012 17:23:16 +0400 Subject: [PATCH] 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. --- tests/patcher_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/patcher_test.py b/tests/patcher_test.py index 8e1f697..889b78d 100644 --- a/tests/patcher_test.py +++ b/tests/patcher_test.py @@ -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)