diff --git a/tests/utils/test_qtutils.py b/tests/utils/test_qtutils.py index 63ce3bfda..aaec77870 100644 --- a/tests/utils/test_qtutils.py +++ b/tests/utils/test_qtutils.py @@ -339,7 +339,7 @@ class TestSerializeStream: assert src_obj == dest_obj - @pytest.mark.qt_log_ignore('^QIODevice::write: ReadOnly device') + @pytest.mark.qt_log_ignore('^QIODevice::write.*: ReadOnly device') def test_serialize_readonly_stream(self): """Test serialize_stream with a read-only stream.""" data = QByteArray() @@ -349,7 +349,7 @@ class TestSerializeStream: assert str(excinfo.value) == ("The data stream cannot write to the " "underlying device.") - @pytest.mark.qt_log_ignore('QIODevice::read: WriteOnly device') + @pytest.mark.qt_log_ignore('QIODevice::read.*: WriteOnly device') def test_deserialize_writeonly_stream(self): """Test deserialize_stream with a write-only stream.""" data = QByteArray()