From 0f6bf4c6aebcfd93d3b9e016330d917d3063851d Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Tue, 26 Apr 2022 15:26:05 +0300 Subject: [PATCH] Use reliable python interpreter path in test_cli --- scss/tests/test_cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scss/tests/test_cli.py b/scss/tests/test_cli.py index 053870a5..79c8e189 100644 --- a/scss/tests/test_cli.py +++ b/scss/tests/test_cli.py @@ -1,4 +1,5 @@ """Test the command-line tool from the outside.""" +import sys from subprocess import PIPE, Popen # TODO: this needs way, way, way, way more tests @@ -6,7 +7,7 @@ def test_stdio(): proc = Popen( - ['python', '-m', 'scss.tool', '-C'], + [sys.executable, '-m', 'scss.tool', '-C'], stdin=PIPE, stdout=PIPE, # this automatically handles encoding/decoding on py3