

@pytest.yield_fixture
def recdata():
    with tmpfile('.h5') as filename:
        f = h5py.File(filename)
        d = f.create_dataset('/x', shape=rec.shape, dtype=rec.dtype, chunks=(4, 6))
        d['x'] = rec['x']
        d['y'] = rec['y']
        (yield d)
        f.close()

dataset/ETHPy150Open blaze/blaze/blaze/compute/tests/test_h5py.py recdata/original