diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2022-04-26 15:30:03 +0300 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2022-04-26 16:44:32 +0300 |
commit | 75bf72ea4b2103b7009e65305bb4979023442e11 (patch) | |
tree | abc891c6684e1e92850163b2c7ad9a30722a8654 /textproc/py-pyscss/files | |
parent | textproc/py-pikepdf: fix testing by removing bogus dependency version limitation (diff) |
textproc/py-pyscss: switch to USES=pytest and fix tests
Reported by: reprise
Approved by: portmgr blanket
Diffstat (limited to 'textproc/py-pyscss/files')
-rw-r--r-- | textproc/py-pyscss/files/patch-scss_tests_test__cli.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/textproc/py-pyscss/files/patch-scss_tests_test__cli.py b/textproc/py-pyscss/files/patch-scss_tests_test__cli.py new file mode 100644 index 000000000000..562d448de1da --- /dev/null +++ b/textproc/py-pyscss/files/patch-scss_tests_test__cli.py @@ -0,0 +1,19 @@ +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 |