Skip to content

Commit abcacaa

Browse files
authored
test: relax error test for missing icon (#682)
1 parent 75ad8e8 commit abcacaa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_widgets.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,14 +847,15 @@ def test_pushbutton_click_signal():
847847
mock2.assert_called_once()
848848

849849

850+
@pytest.mark.filterwarnings("ignore::UserWarning:superqt")
850851
def test_pushbutton_icon(backend: str):
851852
use_app(backend)
852853
btn = widgets.PushButton(icon="mdi:folder")
853854
btn.set_icon("play", "red")
854855
btn.set_icon(None)
855856

856857
if backend == "qt":
857-
with pytest.warns(UserWarning, match="Could not set iconify icon"):
858+
with pytest.warns(UserWarning):
858859
btn.set_icon("bad:key")
859860

860861

0 commit comments

Comments
 (0)