'Test deserialize_stream with an error while deserializing.'

def test_deserialize_post_error_mock(self, stream_mock):

    obj = QPoint()
    stream_mock.__rshift__.side_effect = (lambda _other: self._set_status(stream_mock, QDataStream.ReadCorruptData))
    with pytest.raises(OSError, match='The    data    stream    has    read    corrupt    data.'):
        qtutils.deserialize_stream(stream_mock, obj)
    assert stream_mock.__rshift__.called_once_with(obj)
