Skip to content

Commit c8fcb97

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 c8fcb97

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_codestyle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class BaseTests(unittest.TestCase):
1212
def test_codestyle(self):
1313
args = "black --check -l 100 setup.py src tests"
1414
try:
15-
subprocess.check_output(args.split())
15+
subprocess.check_output(args.split(), shell=False)
1616
except subprocess.CalledProcessError as e:
1717
print("===========================================================")
1818
print(e.output)
@@ -25,7 +25,7 @@ def test_codestyle(self):
2525

2626
args = "isort --check-only src tests setup.py"
2727
try:
28-
subprocess.check_output(args.split())
28+
subprocess.check_output(args.split(), shell=False)
2929
except Exception as e:
3030
print("===========================================================")
3131
print(e.output)

0 commit comments

Comments
 (0)