Skip to content

Commit

Permalink
ignoring irrelevant edge-cases from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
wolph committed Nov 23, 2023
1 parent a4eb6ca commit 4f1efba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions progressbar/multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand All @@ -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(
Expand Down

0 comments on commit 4f1efba

Please sign in to comment.