From b4758a8c1f4c2d86227af31dcd5a254526ad7ba1 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Fri, 23 May 2025 17:28:17 +0200 Subject: [PATCH] Python lint: Ruff rule PLW1510 -- subprocess-run-without-check A subset of: * #525 % `ruff check --select=PLW1510` ``` 1 PLW1510 [*] subprocess-run-without-check ``` https://docs.astral.sh/ruff/rules/subprocess-run-without-check --- tests/client/test_config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/client/test_config.py b/tests/client/test_config.py index 9f1cd8ee1..69efb4024 100644 --- a/tests/client/test_config.py +++ b/tests/client/test_config.py @@ -44,7 +44,9 @@ def test_command_execution(mock_config_path: Path): test_args = [command] + args + ["--help"] - result = subprocess.run(test_args, capture_output=True, text=True, timeout=5) + result = subprocess.run( + test_args, capture_output=True, text=True, timeout=5, check=False + ) assert result.returncode == 0 assert "usage" in result.stdout.lower()