Skip to content

Commit

Permalink
test: remove empty else clause
Browse files Browse the repository at this point in the history
ruff 0.9.3 includes RUF047 by default now which complains about useless
else statements.
  • Loading branch information
jelly committed Jan 27, 2025
1 parent 53b9468 commit 769b1ff
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions test/common/testlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -2854,8 +2854,6 @@ def wait(func: Callable[[], _T | None], msg: str | None = None, delay: int = 1,
except Exception:
if t == tries - 1:
raise
else:
pass
t = t + 1
time.sleep(delay)
raise Error(msg or "Condition did not become true.")
Expand Down

0 comments on commit 769b1ff

Please sign in to comment.