Skip to content

Commit 5a78d68

Browse files
committed
Run ruff on all files
1 parent 6d8414e commit 5a78d68

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/gui/test_misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def test_elides_when_narrow_and_restores_when_wide(label, qtbot):
118118
[
119119
(Qt.ElideLeft, lambda s: s.startswith("…")),
120120
(Qt.ElideRight, lambda s: s.endswith("…")),
121-
(Qt.ElideMiddle, lambda s: ("…" in s and not s.startswith("…") and not s.endswith("…"))),
121+
(Qt.ElideMiddle, lambda s: "…" in s and not s.startswith("…") and not s.endswith("…")),
122122
],
123123
)
124124
def test_elide_modes_affect_ellipsis_position(qtbot, mode, assert_fn):

tests/services/test_video_recorder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def test_queue_full_drops_frames(patch_writegear, output_path, rgb_frame):
170170
assert any(v is False for v in (ok1, ok2, ok3))
171171

172172
# stats should show dropped frames eventually
173-
wait_until(lambda: (rec.get_stats() is not None))
173+
wait_until(lambda: rec.get_stats() is not None)
174174
stats = rec.get_stats()
175175
assert stats is not None
176176
assert stats.dropped_frames >= 1
@@ -214,7 +214,7 @@ def test_encoder_write_error_sets_encode_error_and_future_writes_raise(patch_wri
214214

215215
# wait until encode error becomes visible
216216
wait_until(lambda: rec.get_stats() is not None) # ensures internals initialized
217-
wait_until(lambda: (rec._current_error() is not None), timeout=2.0)
217+
wait_until(lambda: rec._current_error() is not None, timeout=2.0)
218218

219219
# further writes should raise
220220
with pytest.raises(RuntimeError):

0 commit comments

Comments
 (0)