

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

dataset/ETHPy150Open blaze/blaze/blaze/compute/tests/test_h5py.py file/VarMisuse@30/36 `filename`->`f`