From de82919e3901d995859c5ad51375ea768e6972d7 Mon Sep 17 00:00:00 2001 From: Dan Helfman Date: Thu, 13 Jun 2019 21:38:06 -0700 Subject: [PATCH] Skip coverage on a particular annoying-to-trigger branch in execution code. --- borgmatic/execute.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borgmatic/execute.py b/borgmatic/execute.py index 149ebf9..38fd71e 100644 --- a/borgmatic/execute.py +++ b/borgmatic/execute.py @@ -22,7 +22,7 @@ def execute_and_log_output(full_command, output_log_level, shell): logger.log(output_log_level, line) remaining_output = process.stdout.read().rstrip().decode() - if remaining_output: + if remaining_output: # pragma: no cover logger.log(output_log_level, remaining_output) exit_code = process.poll()