Bug#974179: python3-h5netcdf: tests fail with h5py 3.1

Drew Parsons dparsons at debian.org
Wed Nov 11 04:06:39 GMT 2020


Package: python3-h5netcdf
Version: 0.8.1-1
Severity: normal

python3-h5py 3.1.0-1exp1 from experimental is triggering test errors in
python3-h5netcdf.

There is loss of equality in binary strings:
e.g. test_roundtrip_h5netcdf_legacyapi, etc

        assert v.dtype == str
>       assert v[0] == u'foo'
E       AssertionError: assert b'foo' == 'foo'



And in test_reading_str_array_from_netCDF4 there is loss of string
array equality:

    def test_reading_str_array_from_netCDF4(tmp_local_netcdf):
        # This tests reading string variables created by netCDF4
        with netCDF4.Dataset(tmp_local_netcdf, 'w') as ds:
            ds.createDimension('foo1', _string_array.shape[0])
            ds.createDimension('foo2', _string_array.shape[1])
            ds.createVariable('bar', str, ('foo1', 'foo2'))
            ds.variables['bar'][:] = _string_array
    
        ds = h5netcdf.File(tmp_local_netcdf, 'r')
    
        v = ds.variables['bar']
>       assert array_equal(v, _string_array)
E       AssertionError: assert False
E        +  where False = array_equal(<h5netcdf.Variable '/bar': dimensions ('foo1', 'foo2'), shape (2, 3), dtype object>\nAttributes:, array([['foobar0', 'foobar1', 'foobar3'],\n       ['foofoofoo', 'foofoobar', 'foobarbar']], dtype='<U9'))






-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.9.0-1-amd64 (SMP w/8 CPU threads)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), LANGUAGE=en_AU:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-h5netcdf depends on:
ii  python3       3.8.6-1
ii  python3-h5py  3.1.0-1exp1

python3-h5netcdf recommends no packages.

python3-h5netcdf suggests no packages.

-- no debconf information



More information about the debian-science-maintainers mailing list