From: Stefano Rivera <stefanor@debian.org>
Date: Thu, 29 Sep 2022 12:32:16 +0200
Subject: Avoid hardcoding "python" binary name

On modern Debian systems, there isn't a "python" binary, unless a user
is in a virtualenv or has installed python-is-python3.

Forwarded: https://github.com/tbenthompson/cppimport/pull/83
---
 tests/test_cppimport.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test_cppimport.py b/tests/test_cppimport.py
index f0715e3..9c12c74 100644
--- a/tests/test_cppimport.py
+++ b/tests/test_cppimport.py
@@ -38,7 +38,7 @@ def appended(filename, text):
 
 def subprocess_check(test_code, returncode=0):
     p = subprocess.run(
-        ["python", "-c", test_code],
+        [sys.executable, "-c", test_code],
         cwd=os.path.dirname(__file__),
         stdout=subprocess.PIPE,
         stderr=subprocess.PIPE,
