Skip to content

Commit

Permalink
Ensure examples tests always run with the current interpreter
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayourfriend committed Nov 20, 2024
1 parent 0a47827 commit eb5749d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/integration/examples_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import platform
import subprocess
from pathlib import Path
import sys

import pytest

Expand All @@ -16,6 +17,6 @@

@pytest.mark.parametrize("example", examples)
def test_examples(example):
result = subprocess.run(["python", f"examples/{example}"], check=False)
result = subprocess.run([sys.executable, f"examples/{example}"], check=False)

assert result.returncode == 0, result.stdout

0 comments on commit eb5749d

Please sign in to comment.