1import h5py 2import pytest 3 4 5@pytest.fixture() 6def writable_file(tmp_path): 7 with h5py.File(tmp_path / 'test.h5', 'w') as f: 8 yield f 9