Skip to content

Commit

Permalink
Use sys.executable to use the right executbale in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dalonsoa committed Jan 10, 2024
1 parent 89b87c8 commit 98c4695
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_tutorials.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 98c4695

Please sign in to comment.