File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55# Visit https://aboutcode.org and https://github.com/nexB/univers for support and download.
66
77import subprocess
8+ import sys
89import unittest
910
11+ import pytest
1012
13+
14+ @pytest .mark .skipif (sys .platform == "darwin" , reason = "Test does not run on macOS13 and older." )
1115class 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 )
You can’t perform that action at this time.
0 commit comments