Your message dated Tue, 06 Dec 2022 07:04:09 +0000
with message-id <e1p2rzt-00bhj6...@fasolo.debian.org>
and subject line Bug#1024914: fixed in hickle 5.0.2-3
has caused the Debian Bug report #1024914,
regarding hickle: (autopkgtest) needs update for python3.11: property 'dtype' 
of 'Dataset' object has no setter
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1024914: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1024914
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: hickle
Version: 5.0.2-2
Severity: serious
Tags: sid bookworm
User: debian...@lists.debian.org
Usertags: needs-update
User: debian-pyt...@lists.debian.org
Usertags: python3.11
Control: affects -1 src:python3-defaults

Dear maintainer(s),

We are in the transition of adding python3.11 as a supported Python version [0]. With a recent upload of python3-defaults the autopkgtest of hickle fails in testing when that autopkgtest is run with the binary packages of python3-defaults from unstable. It passes when run with only packages from testing. In tabular form:

                       pass            fail
python3-defaults       from testing    3.10.6-3
hickle                 from testing    5.0.2-2
all others             from testing    from testing

I copied some of the output at the bottom of this report.

Currently this regression is blocking the migration of python3-defaults to testing [1]. https://docs.python.org/3/whatsnew/3.11.html lists what's new in Python3.11, it may help to identify what needs to be updated.

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[0] https://bugs.debian.org/1021984
[1] https://qa.debian.org/excuses.php?package=python3-defaults

https://ci.debian.net/data/autopkgtest/testing/amd64/h/hickle/28726232/log.gz

=================================== FAILURES =================================== ____________________________ test_H5NodeFilterProxy ____________________________

h5_data = <HDF5 file "hickle_helpers_test_H5NodeFilterProxy.hdf5" (mode r)>

    def test_H5NodeFilterProxy(h5_data):
        """
tests H5NodeFilterProxy class. This class allows to temporarily rewrite attributes of h5py.Group and h5py.Dataset nodes before being loaded by
        hickle._load method.
        """
# load data and try to directly modify 'type' and 'base_type' Attributes
        # which will fail cause hdf5 file is opened for read only
        h5_node = h5_data['somedata']
        with pytest.raises(OSError):
            try:
                h5_node.attrs['type'] = pickle.dumps(list)
            except RuntimeError as re:
                raise OSError(re).with_traceback(re.__traceback__)
        with pytest.raises(OSError):
            try:
                h5_node.attrs['base_type'] = b'list'
            except RuntimeError as re:
                raise OSError(re).with_traceback(re.__traceback__)
            # verify that 'type' expands to tuple before running
        # the remaining tests
        object_type = pickle.loads(h5_node.attrs['type'])
        assert object_type is tuple
        assert object_type(h5_node[()].tolist()) == dummy_data
            # Wrap node by H5NodeFilterProxy and rerun the above tests
        # again. This time modifying Attributes shall be possible.
        h5_node = H5NodeFilterProxy(h5_node)
        h5_node.attrs['type'] = pickle.dumps(list)
        h5_node.attrs['base_type'] = b'list'
        object_type = pickle.loads(h5_node.attrs['type'])
        assert object_type is list
            # test proper pass through of item and attribute access
        # to wrapped h5py.Group or h5py.Dataset object respective
        assert object_type(h5_node[()].tolist()) == list(dummy_data)
        assert h5_node.shape == np.array(dummy_data).shape
with pytest.raises(AttributeError,match = r"can't\s+set\s+attribute"):
          h5_node.dtype = np.float32

/tmp/autopkgtest-lxc.j_xof7x9/downtmp/build.8IK/src/hickle/tests/test_01_hickle_helpers.py:154: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <hickle.helpers.H5NodeFilterProxy object at 0x7f5593aeb050>
name = 'dtype', value = <class 'numpy.float32'>

    def __setattr__(self, name, value):
# if wrapped _h5_node and attrs shall be set store value on local attributes
        # otherwise pass on to wrapped _h5_node
        if name in {'_h5_node'}:
            super().__setattr__(name, value)
            return
        if name in {'attrs'}: # pragma: no cover
            raise AttributeError('attribute is read-only')
        _h5_node = super().__getattribute__('_h5_node')
      setattr(_h5_node, name, value)
E       AttributeError: property 'dtype' of 'Dataset' object has no setter

/tmp/autopkgtest-lxc.j_xof7x9/downtmp/build.8IK/src/hickle/helpers.py:180: AttributeError

During handling of the above exception, another exception occurred:

h5_data = <HDF5 file "hickle_helpers_test_H5NodeFilterProxy.hdf5" (mode r)>

    def test_H5NodeFilterProxy(h5_data):
        """
tests H5NodeFilterProxy class. This class allows to temporarily rewrite attributes of h5py.Group and h5py.Dataset nodes before being loaded by
        hickle._load method.
        """
# load data and try to directly modify 'type' and 'base_type' Attributes
        # which will fail cause hdf5 file is opened for read only
        h5_node = h5_data['somedata']
        with pytest.raises(OSError):
            try:
                h5_node.attrs['type'] = pickle.dumps(list)
            except RuntimeError as re:
                raise OSError(re).with_traceback(re.__traceback__)
        with pytest.raises(OSError):
            try:
                h5_node.attrs['base_type'] = b'list'
            except RuntimeError as re:
                raise OSError(re).with_traceback(re.__traceback__)
            # verify that 'type' expands to tuple before running
        # the remaining tests
        object_type = pickle.loads(h5_node.attrs['type'])
        assert object_type is tuple
        assert object_type(h5_node[()].tolist()) == dummy_data
            # Wrap node by H5NodeFilterProxy and rerun the above tests
        # again. This time modifying Attributes shall be possible.
        h5_node = H5NodeFilterProxy(h5_node)
        h5_node.attrs['type'] = pickle.dumps(list)
        h5_node.attrs['base_type'] = b'list'
        object_type = pickle.loads(h5_node.attrs['type'])
        assert object_type is list
            # test proper pass through of item and attribute access
        # to wrapped h5py.Group or h5py.Dataset object respective
        assert object_type(h5_node[()].tolist()) == list(dummy_data)
        assert h5_node.shape == np.array(dummy_data).shape
      with pytest.raises(AttributeError,match = r"can't\s+set\s+attribute"):
E AssertionError: Regex pattern "can't\\s+set\\s+attribute" does not match "property 'dtype' of 'Dataset' object has no setter".

/tmp/autopkgtest-lxc.j_xof7x9/downtmp/build.8IK/src/hickle/tests/test_01_hickle_helpers.py:153: AssertionError =========================== short test summary info ============================ FAILED hickle/tests/test_01_hickle_helpers.py::test_H5NodeFilterProxy - Asser... !!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!! ========================= 1 failed, 2 passed in 0.99s ==========================
autopkgtest [17:14:14]: test run-tests

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Source: hickle
Source-Version: 5.0.2-3
Done: Edward Betts <edw...@4angle.com>

We believe that the bug you reported is fixed in the latest version of
hickle, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1024...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Edward Betts <edw...@4angle.com> (supplier of updated hickle package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Tue, 06 Dec 2022 06:37:21 +0000
Source: hickle
Architecture: source
Version: 5.0.2-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+pyt...@tracker.debian.org>
Changed-By: Edward Betts <edw...@4angle.com>
Closes: 1024914
Changes:
 hickle (5.0.2-3) unstable; urgency=medium
 .
   * Fix test that failed under Python 3.11. (Closes: #1024914)
Checksums-Sha1:
 c7bc41ad9d4a94d4b3b11fe72c88f5b16f2f71c1 2276 hickle_5.0.2-3.dsc
 9bb8dfb31c8718a5e046b34c485966f8a5f79045 2872 hickle_5.0.2-3.debian.tar.xz
 5fad08b7c397adb735813bffc70d3fbe881c292f 10527 hickle_5.0.2-3_source.buildinfo
Checksums-Sha256:
 bf8f71abb1ec9e3edd381e05bf2b9992be6b5700ee4232f1573821ed307e06dd 2276 
hickle_5.0.2-3.dsc
 f575616e106e32907fa6c8d608680a24c8e7cd06e6878116f27bea42f73f8ebe 2872 
hickle_5.0.2-3.debian.tar.xz
 2096a262074198a0e5d940b0b8f08abfdbaedac2cc3fc57273787c679ab90206 10527 
hickle_5.0.2-3_source.buildinfo
Files:
 ae3e9d16357ab34ba10e410634bf3cd3 2276 python optional hickle_5.0.2-3.dsc
 1a9efae2d917e1dc3f8cdef4981e6e39 2872 python optional 
hickle_5.0.2-3.debian.tar.xz
 e7402684933450b1b58f764e858dc6fc 10527 python optional 
hickle_5.0.2-3_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE+4rPp4xyYInDitAmlgWhCYxjuSoFAmOO5xMACgkQlgWhCYxj
uSqBpQ//bK2flwjHLfu2GK0XLFPnLkE68sC6JtAspegb30VJiEZNu5VSuNZsKU7+
pRJceUdPFRAbRv9O97Pk7vVqGg+e9g1xpZ6U859ruig1H3cbS9uhEolHUQPXyRoo
Ay33XRuCos3gTifi1Zb93l2LMuIrFyleaZEYdeYHBSyPRP2FeVPS+TZbYLHChune
Hz2tEHZvFWnWU1vMMsmomTH1Y/rPbQiWh6m+bQndBUhqry4vHnc+oXmdlfDGiQO7
YUqu9TDhwTq1cY7KIeJG2VFoWzbjq5D2Xr0heRHoJVt2oHWIFkdyWYIlP+TT0QiF
9y7edBCpMU8Lg9Yglix6mp26Vw0F+Po12WgqktevyBYW5fL/c2RvZpRjE4OhTxez
ZiBKJEyQPxG8I2dl09isZN3Rq8xwz5DW5BIhR2TBuAfIgjMChZymm34irNtOcYK+
R+zsXwtwoJ3RRzOraOAuQnsrO+YBSUFRLSNmozydqkWP3B2MeXG61+t8r4fkXbPC
bEJi0T20ZrkARJJOQJNWkkG/oNFuR9RCrvNm3elYJ3eGHKs7mbo6UsEv9JnTDd8k
k4rChFhpoR0gBurhO72l0+0iS+8fUavWPkH9lkgiUPcFb1ZtSUZXuWFGbxGWhcIO
X9vnbNB/kP5KSbwLQr06OsDw+0FvDutHEEKE/M/kjyy1OEySxSI=
=jYiX
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to