'Fixture providing a PyQIODevice with a QByteArray to test.'

@pytest.fixture
def pyqiodev(self):

    data = QByteArray()
    f = QBuffer(data)
    qiodev = qtutils.PyQIODevice(f)
    (yield qiodev)
    qiodev.close()
