opnsense-ports/textproc/py-pyscss/files/patch-scss_tests_test__cli.py
Franco Fichtner f9c9f1ac9d */*: sync with upstream
Taken from: FreeBSD
2022-04-28 12:55:19 +02:00

19 lines
589 B
Python

https://github.com/Kronuz/pyScss/pull/425
--- scss/tests/test_cli.py.orig 2020-03-26 15:04:27 UTC
+++ 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 @@ from subprocess import PIPE, Popen
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