Skip to content

Commit 594baf5

Browse files
committed
Set shell param to False while running code style tests
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
1 parent fe35a34 commit 594baf5

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/test_codestyle.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,18 @@
55
# Visit https://aboutcode.org and https://github.com/nexB/univers for support and download.
66

77
import subprocess
8+
import sys
89
import unittest
910

11+
import pytest
1012

13+
14+
@pytest.mark.skipif(sys.platform == "darwin", reason="Test does not run on macOS13 and older.")
1115
class BaseTests(unittest.TestCase):
1216
def test_codestyle(self):
1317
args = "black --check -l 100 setup.py src tests"
1418
try:
15-
subprocess.check_output(args.split())
19+
subprocess.check_output(args.split(), shell=False)
1620
except subprocess.CalledProcessError as e:
1721
print("===========================================================")
1822
print(e.output)
@@ -25,7 +29,7 @@ def test_codestyle(self):
2529

2630
args = "isort --check-only src tests setup.py"
2731
try:
28-
subprocess.check_output(args.split())
32+
subprocess.check_output(args.split(), shell=False)
2933
except Exception as e:
3034
print("===========================================================")
3135
print(e.output)

0 commit comments

Comments
 (0)