subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
if not cov_args: cov_args = ["--cov", "."] cmd = [sys.executable, "-m", "pytest"] + cov_args + [test_path, "--no-header", "-q"] result = subprocess.run( cmd, capture_output=True, text=True, timeout=30, )- Confidence
- 87% confidence
- Finding
- result = subprocess.run( cmd, capture_output=True, text=True, timeout=30, )
