From 514277a0fa6a16b78586afe2f35b9e72447d6dae Mon Sep 17 00:00:00 2001 From: Talley Lambert Date: Sat, 14 Dec 2024 15:28:14 -0500 Subject: [PATCH] test: relax error test for missing icon --- tests/test_widgets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_widgets.py b/tests/test_widgets.py index 6ee26603b..ca2780856 100644 --- a/tests/test_widgets.py +++ b/tests/test_widgets.py @@ -847,6 +847,7 @@ def test_pushbutton_click_signal(): mock2.assert_called_once() +@pytest.mark.filterwarnings("ignore::UserWarning:superqt") def test_pushbutton_icon(backend: str): use_app(backend) btn = widgets.PushButton(icon="mdi:folder") @@ -854,7 +855,7 @@ def test_pushbutton_icon(backend: str): btn.set_icon(None) if backend == "qt": - with pytest.warns(UserWarning, match="Could not set iconify icon"): + with pytest.warns(UserWarning): btn.set_icon("bad:key")