Skip to content

Commit b59e967

Browse files
jcfradamchainz
andcommitted
tests: Improve robustness of test_ninja_package using sys.executable
Co-authored-by: Adam Johnson <[email protected]>
1 parent 389db13 commit b59e967

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_ninja.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
import pytest
33
import subprocess
4+
import sys
45

56
import ninja
67

@@ -20,4 +21,4 @@ def test_ninja_module():
2021

2122

2223
def test_ninja_package():
23-
subprocess.check_call(["python", "-m", "ninja", "--version"])
24+
subprocess.check_call([sys.executable, "-m", "ninja", "--version"])

0 commit comments

Comments
 (0)