Skip to content

Commit ed7a519

Browse files
use sys executable instead of global python
1 parent 6d1aac7 commit ed7a519

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test_models.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
import glob
23
import subprocess
34

@@ -16,5 +17,7 @@ def test_all_models():
1617
continue
1718

1819
print(f"Running {model}...")
19-
process = subprocess.run(["python", model], capture_output=True, text=True)
20+
process = subprocess.run(
21+
[sys.executable, model], capture_output=True, text=True
22+
)
2023
assert process.returncode == 0, process.stderr

0 commit comments

Comments
 (0)