PY27: failing test wetb/gtsdf/tests/test_gtsdf.py:199

gtsdf.save (wetb/gtsdf/tests/test_gtsdf.py:199) fails on Python 2.7. Here's the report

________________________________________ Test_gsdf.test_outlier _________________________________________

self = <wetb.gtsdf.tests.test_gtsdf.Test_gsdf testMethod=test_outlier>

    def test_outlier(self):
        fn = tmp_path + 'outlier.hdf5'
        d = np.arange(12, dtype=np.float32).reshape(6, 2)
        d[2, 0] = 10 ** 4
        d[3, 1] = 10 ** 4
>       self.assertRaises(Warning, gtsdf.save, fn, d)

wetb/gtsdf/tests/test_gtsdf.py:199: 
_ _ _ _ _ _ _ _ _  _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ __ _ _ _ _ __ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
wetb/gtsdf/gtsdf.py:252: in save
    append_block(filename, data, **kwargs)
wetb/gtsdf/gtsdf.py:368: in append_block
    f.close()
/home/dave/Software/virtualenv/wetb_py2/lib/python2.7/site-packages/h5py/_hl/files.py:276: in close
    id_list = h5f.get_obj_ids(self.id, ~h5f.OBJ_FILE)
h5py/_objects.pyx:54: in h5py._objects.with_phil.wrapper (/tmp/pip-build-R3zUre/h5py/h5py/_objects.c:2574)
    ???
h5py/_objects.pyx:55: in h5py._objects.with_phil.wrapper (/tmp/pip-build-R3zUre/h5py/h5py/_objects.c:2533)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _  _ _ _ _ __ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _  _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   ValueError: Not a file id (Not a file id)

h5py/h5f.pyx:228: ValueError