From: Stefano Rivera <stefanor@debian.org>
Date: Fri, 25 Sep 2020 18:46:32 -0700
Subject: Tests: Use the python2 binary

Debian doesn't ship a /usr/bin/python any more

Forwarded: not-needed
---
 pypy/module/_posixsubprocess/test/test_subprocess.py | 6 +++---
 pypy/pytest-A.cfg                                    | 2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/pypy/module/_posixsubprocess/test/test_subprocess.py b/pypy/module/_posixsubprocess/test/test_subprocess.py
index 05f20cc..c5f7b16 100644
--- a/pypy/module/_posixsubprocess/test/test_subprocess.py
+++ b/pypy/module/_posixsubprocess/test/test_subprocess.py
@@ -30,7 +30,7 @@ class AppTestSubprocess:
             #self.addCleanup(os.close, fd)
             open_fds.add(fd)
 
-        p = subprocess.Popen(['/usr/bin/env', 'python', os.path.join(self.dir, 'fd_status.py')], stdout=subprocess.PIPE, close_fds=True)
+        p = subprocess.Popen(['/usr/bin/env', 'python2', os.path.join(self.dir, 'fd_status.py')], stdout=subprocess.PIPE, close_fds=True)
         output, ignored = p.communicate()
         remaining_fds = set(map(int, output.split(b',')))
 
@@ -46,7 +46,7 @@ class AppTestSubprocess:
         import os
         try:
             output = subprocess.check_output(
-                    ['/usr/bin/env', 'python', "-c",
+                    ['/usr/bin/env', 'python2', "-c",
                      "import os; print(os.getpgid(os.getpid()))"],
                     start_new_session=True)
         except OSError as e:
@@ -79,7 +79,7 @@ class AppTestSubprocess:
         assert posix.get_inheritable(fd1) is False
         assert posix.get_inheritable(fd2) is False
 
-        subprocess.check_call(['/usr/bin/env', 'python', '-c',
+        subprocess.check_call(['/usr/bin/env', 'python2', '-c',
                                'import os;os.write(%d,b"K")' % fd2],
                               close_fds=True, pass_fds=[fd2])
         res = posix.read(fd1, 1)
diff --git a/pypy/pytest-A.cfg b/pypy/pytest-A.cfg
index fccc6a2..219cef8 100644
--- a/pypy/pytest-A.cfg
+++ b/pypy/pytest-A.cfg
@@ -1,7 +1,7 @@
 import sys
 cherrypick = ['interpreter', 'objspace/test', 'objspace/std', 'module']
 
-interp = ['python']
+interp = ['python2']
 if sys.platform == 'win32':
     test_driver = ['test_all.py', '-A', '--python=goal/pypy3-c.exe']
 else:
