From 7b4c42a0984924a2c0005e52b13c0d659ae2ba99 Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Wed, 28 Sep 2022 22:04:07 +0300 Subject: [PATCH] Remove dead code --- conftest.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/conftest.py b/conftest.py index e5e5f02..3eba5d2 100644 --- a/conftest.py +++ b/conftest.py @@ -19,17 +19,7 @@ def get_bitcoind_version(version_string: bytes) -> tuple: version_string).groups() return tuple(map(lambda x: int(x), version_tuple)) -def local_command(command: str, bg: bool = False, redirect: str = ''): - if redirect == 'NULL': - if OS == 'Windows': - command.append(' > NUL 2>&1') - elif OS == 'Linux': - command.extend(['>', '/dev/null', '2>&1']) - else: - pytest.exit("OS not recognised, quitting.") - elif redirect: - command.extend(['>', redirect]) - +def local_command(command: str, bg: bool = False): if bg: #using subprocess.PIPE seems to cause problems FNULL = open(os.devnull, 'w')