Skip to content

Commit 7cc6149

Browse files
authored
Merge pull request #77 from musicinmybrain/test-python-executable
Don’t assume Python is called `python` in tests
2 parents afcd1cf + 97a70c9 commit 7cc6149

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from collections import namedtuple
1515
from os.path import basename, exists
1616
from subprocess import PIPE, Popen
17+
import sys
1718
import time
1819

1920
# Local imports
@@ -38,7 +39,7 @@ def invoke(args):
3839
stderr=PIPE,
3940
cwd=PROJECT_DIR
4041
)
41-
proc = Popen(['python', '-m', 'qtsass'] + args, **kwargs)
42+
proc = Popen([sys.executable, '-m', 'qtsass'] + args, **kwargs)
4243
return proc
4344

4445

0 commit comments

Comments
 (0)