Skip to content

Commit 2c5c406

Browse files
committed
Use sys.executable to test the cli
fixes #38
1 parent c7f1e7a commit 2c5c406

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import six
22
import subprocess
3+
import sys
34

45
def test_console_script():
5-
command = ['python', '-m', 'textile', 'README.textile']
6+
command = [sys.executable, '-m', 'textile', 'README.textile']
67
try:
78
result = subprocess.check_output(command)
89
except AttributeError:

0 commit comments

Comments
 (0)