* subversion/tests/cmdline/svntest/main.py
(open_pipe): Run Python tests under the same Python executable for
all platforms rather than just Win32 (rather than finding one from
$PATH via /usr/bin/env).
@@ -456,9 +456,9 @@ def open_pipe(command, bufsize=-1, stdin=None, stdout=None, stderr=None):
should be passed to wait_on_pipe."""
command = [str(x) for x in command]
- # On Windows subprocess.Popen() won't accept a Python script as
- # a valid program to execute, rather it wants the Python executable.
- if (sys.platform == 'win32') and (command[0].endswith('.py')):
+ # Always run python scripts under the same Python executable as used
+ # for the test suite.
+ if command[0].endswith('.py'):
command.insert(0, sys.executable)
command_string = command[0] + ' ' + ' '.join(map(_quote_arg, command[1:]))
