From 4f1efba8577c225d5b4e4280ae004d8762674f0b Mon Sep 17 00:00:00 2001 From: Rick van Hattem Date: Thu, 23 Nov 2023 17:44:06 +0100 Subject: [PATCH] ignoring irrelevant edge-cases from coverage --- progressbar/multi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/progressbar/multi.py b/progressbar/multi.py index 679dc53..3e105e3 100644 --- a/progressbar/multi.py +++ b/progressbar/multi.py @@ -186,7 +186,7 @@ def render(self, flush: bool = True, force: bool = False): with self._print_lock: # Clear the previous output if progressbars have been removed for i in range(len(output), len(self._previous_output)): - self._buffer.write(terminal.clear_line(i + 1)) + self._buffer.write(terminal.clear_line(i + 1)) # pragma: no cover # Add empty lines to the end of the output if progressbars have # been added @@ -201,7 +201,7 @@ def render(self, flush: bool = True, force: bool = False): fillvalue='', ), ): - if previous != current or force: + if previous != current or force: # pragma: no branch self.print( '\r' + current.strip(), offset=i + 1, @@ -212,7 +212,7 @@ def render(self, flush: bool = True, force: bool = False): self._previous_output = output - if flush: + if flush: # pragma: no branch self.flush() def _render_bar(