From e9229507a97e5ac4240cb6bd22ba11a6be4701f0 Mon Sep 17 00:00:00 2001 From: "Jan C. Brammer" Date: Tue, 15 Oct 2024 11:05:16 +0000 Subject: [PATCH] Pass individual flags to executable E.g., pass ["-foo", "-bar"] instead of "-foo -bar". --- INCHI-1-TEST/tests/test_executable/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/INCHI-1-TEST/tests/test_executable/conftest.py b/INCHI-1-TEST/tests/test_executable/conftest.py index 1259e80..b3166d6 100644 --- a/INCHI-1-TEST/tests/test_executable/conftest.py +++ b/INCHI-1-TEST/tests/test_executable/conftest.py @@ -24,7 +24,7 @@ def _run_inchi_exe( raise FileNotFoundError(f"InChI executable not found at {exe_path}.") return subprocess.run( - [exe_path, molfile_path, args], + [exe_path, molfile_path] + args.split(), capture_output=True, text=True, )