From e0c84ac4d2fbba2822bd0960ca154b654b30da97 Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Tue, 24 Mar 2020 18:47:53 +0100 Subject: [PATCH] Pylint: explicitly note why we're doing an unchecked subprocess.run Signed-off-by: Gilles Peskine --- tests/scripts/test_config_script.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/scripts/test_config_script.py b/tests/scripts/test_config_script.py index 40ed9fd9b..c8fdea5ee 100755 --- a/tests/scripts/test_config_script.py +++ b/tests/scripts/test_config_script.py @@ -92,6 +92,7 @@ def list_presets(options): return re.split(r'[ ,]+', options.presets) else: help_text = subprocess.run([options.script, '--help'], + check=False, # config.pl --help returns 255 stdout=subprocess.PIPE, stderr=subprocess.STDOUT).stdout return guess_presets_from_help(help_text.decode('ascii'))