Skip to content

Commit 97a70c9

Browse files
In tests, don’t assume Python is called python
Use sys.executable instead.
1 parent afcd1cf commit 97a70c9

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)