Fix expected qWarning messages for Qt 5.5.

This commit is contained in:
Florian Bruhin 2015-06-24 20:30:26 +02:00
parent db267ae195
commit 24424a0486

View File

@ -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()