From 98c469529fac0977989cc5b457d8e0009060ec9e Mon Sep 17 00:00:00 2001 From: Diego Alonso Alvarez Date: Wed, 10 Jan 2024 10:50:39 +0000 Subject: [PATCH] Use sys.executable to use the right executbale in tests --- tests/test_tutorials.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_tutorials.py b/tests/test_tutorials.py index 78407df3..11d10a98 100644 --- a/tests/test_tutorials.py +++ b/tests/test_tutorials.py @@ -13,5 +13,6 @@ def available_tutorials() -> List[Path]: @mark.parametrize("tutorial", available_tutorials()) def test_tutorials(tutorial): import subprocess + import sys - subprocess.run(["python", tutorial]).check_returncode() + subprocess.run([sys.executable, tutorial]).check_returncode()