Skip to content

Commit

Permalink
remove unnecessary loop
Browse files Browse the repository at this point in the history
  • Loading branch information
ericleonardis committed Jan 2, 2025
1 parent be4c828 commit d0e3558
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/gui/test_slider.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ def test_toVal_invalid_input(qtbot, invalid_value, expected_error_msg):
None
"""
# We use tqdm to track progress across multiple invalid inputs (optional).
for _ in range(1):
slider = VideoSlider(min=0, max=1000, val=15)

with pytest.raises(ValueError) as excinfo:
slider._toVal(invalid_value)
slider = VideoSlider(min=0, max=1000, val=15)

# Verify the exact error message
assert str(excinfo.value) == expected_error_msg
with pytest.raises(ValueError) as excinfo:
slider._toVal(invalid_value)

# Verify the exact error message
assert str(excinfo.value) == expected_error_msg

0 comments on commit d0e3558

Please sign in to comment.