From b4dfe130ffd0705ff421bc6d3dd9aa4809e44392 Mon Sep 17 00:00:00 2001 From: "sentry[bot]" <39604003+sentry[bot]@users.noreply.github.com> Date: Wed, 12 Aug 2026 08:56:43 +0000 Subject: [PATCH] fix: use sys.executable for pytest runner python_path --- codecov_cli/runners/pytest_standard_runner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codecov_cli/runners/pytest_standard_runner.py b/codecov_cli/runners/pytest_standard_runner.py index 0e4260dde..38e5921b1 100644 --- a/codecov_cli/runners/pytest_standard_runner.py +++ b/codecov_cli/runners/pytest_standard_runner.py @@ -2,6 +2,7 @@ import logging import random import subprocess +import sys from subprocess import CalledProcessError from sys import stdout from typing import List, Optional @@ -20,7 +21,7 @@ class PytestStandardRunnerConfigParams(dict): @property def python_path(self) -> str: python_path = self.get("python_path") - return python_path or "python" + return python_path or sys.executable @property def collect_tests_options(self) -> List[str]: