'Make sure using the PyQIODevice as context manager works.'

def test_contextmanager(self, pyqiodev):

    assert pyqiodev.closed
    with pyqiodev.open(QIODevice.ReadOnly) as f:
        assert (not f.closed)
        assert (f is pyqiodev)
    assert pyqiodev.closed
