Skip to content

Commit b4758a8

Browse files
authored
Python lint: Ruff rule PLW1510 -- subprocess-run-without-check
A subset of: * modelcontextprotocol#525 % `ruff check --select=PLW1510` ``` 1 PLW1510 [*] subprocess-run-without-check ``` https://docs.astral.sh/ruff/rules/subprocess-run-without-check
1 parent 10cf0f7 commit b4758a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/client/test_config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ def test_command_execution(mock_config_path: Path):
4444

4545
test_args = [command] + args + ["--help"]
4646

47-
result = subprocess.run(test_args, capture_output=True, text=True, timeout=5)
47+
result = subprocess.run(
48+
test_args, capture_output=True, text=True, timeout=5, check=False
49+
)
4850

4951
assert result.returncode == 0
5052
assert "usage" in result.stdout.lower()

0 commit comments

Comments
 (0)