Your message dated Wed, 01 Feb 2023 21:23:10 +0000
with message-id <e1pnkzs-009e2v...@fasolo.debian.org>
and subject line Bug#1030233: fixed in python-hypothesis 6.65.2-1
has caused the Debian Bug report #1030233,
regarding python-hypothesis: autopkgtest regression in testing
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.)


-- 
1030233: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1030233
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: python-hypothesis
Version: 6.64.0-1
Severity: serious
User: debian...@lists.debian.org
Usertags: regression

Hi Maintainer

Recently, the autopkgtests of python-hypothesis regressed in testing
[1].  I've copied what I hope is the relevant part of the log below.

Regards
Graham


[1] https://ci.debian.net/packages/p/python-hypothesis/testing/amd64/


=================================== FAILURES ===================================
_______________ test_overflowing_integers_are_deprecated[False] ________________

fill = False

>   ???

tests/numpy/test_gen_data.py:347:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/common/utils.py:102: in inverted_test
    f(*arguments, **kwargs)
tests/numpy/test_gen_data.py:347: in test_overflowing_integers_are_deprecated
    ???
tests/numpy/test_gen_data.py:354: in test_overflowing_integers_are_deprecated
    arr = data.draw(nps.arrays(dtype="int8", shape=(1,), **kw))
/usr/lib/python3/dist-packages/hypothesis/strategies/_internal/core.py:1836:
in draw
    result = self.conjecture_data.draw(strategy)
/usr/lib/python3/dist-packages/hypothesis/internal/conjecture/data.py:946:
in draw
    return strategy.do_draw(self)
/usr/lib/python3/dist-packages/hypothesis/strategies/_internal/lazy.py:156:
in do_draw
    return data.draw(self.wrapped_strategy)
/usr/lib/python3/dist-packages/hypothesis/internal/conjecture/data.py:941:
in draw
    return strategy.do_draw(self)
/usr/lib/python3/dist-packages/hypothesis/extra/numpy.py:324: in do_draw
    self.set_element(data.draw(self.fill), one_element, 0, fill=True)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <hypothesis.extra.numpy.ArrayStrategy object at 0x7f3c03eefdc0>
val = 300, result = array([44], dtype=int8), idx = 0

    def set_element(self, val, result, idx, *, fill=False):
        try:
            result[idx] = val
        except TypeError as err:
            raise InvalidArgument(
                f"Could not add element={val!r} of {val.dtype!r} to array of "
                f"{result.dtype!r} - possible mismatch of time units in dtypes?"
            ) from err
        try:
            elem_changed = self._check_elements and val != result[idx]
and val == val
        except Exception as err:  # pragma: no cover
            # This branch only exists to help debug weird behaviour in Numpy,
            # such as the string problems we had a while back.
            raise HypothesisException(
                "Internal error when checking element=%r of %r to array of %r"
                % (val, val.dtype, result.dtype)
            ) from err
        if elem_changed:
            strategy = self.fill if fill else self.element_strategy
            if self.dtype.kind == "f":  # pragma: no cover
                # This logic doesn't trigger in our coverage tests
under Numpy 1.24+,
                # with built-in checks for overflow, but we keep it
for good error
                # messages and compatibility with older versions of Numpy.
                try:
                    is_subnormal = 0 < abs(val) < np.finfo(self.dtype).tiny
                except Exception:
                    # val may be a non-float that does not support the
                    # operations __lt__ and __abs__
                    is_subnormal = False
                if is_subnormal:
                    raise InvalidArgument(
                        f"Generated subnormal float {val} from strategy "
                        f"{strategy} resulted in {result[idx]!r}, probably "
                        "as a result of NumPy being built with flush-to-zero "
                        "compiler options. Consider passing "
                        "allow_subnormal=False."
                    )
>           raise InvalidArgument(
                "Generated array element %r from %r cannot be represented as "
                "dtype %r - instead it becomes %r (type %r).  Consider
using a more "
                "precise strategy, for example passing the `width` argument to "
                "`floats()`."
                % (val, strategy, self.dtype, result[idx], type(result[idx]))
            )
E           hypothesis.errors.InvalidArgument: Generated array element
300 from just(300) cannot be represented as dtype dtype('int8') -
instead it becomes 44 (type <class 'numpy.int8'>).  Consider using a
more precise strategy, for example passing the `width` argument to
`floats()`.
E           Falsifying example: test_overflowing_integers_are_deprecated(
E               data=data(...),
E               fill=False,
E           )

/usr/lib/python3/dist-packages/hypothesis/extra/numpy.py:229: InvalidArgument
________________ test_overflowing_integers_are_deprecated[True] ________________

fill = True

>   ???

tests/numpy/test_gen_data.py:347:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/common/utils.py:102: in inverted_test
    f(*arguments, **kwargs)
tests/numpy/test_gen_data.py:347: in test_overflowing_integers_are_deprecated
    ???
tests/numpy/test_gen_data.py:354: in test_overflowing_integers_are_deprecated
    arr = data.draw(nps.arrays(dtype="int8", shape=(1,), **kw))
/usr/lib/python3/dist-packages/hypothesis/strategies/_internal/core.py:1836:
in draw
    result = self.conjecture_data.draw(strategy)
/usr/lib/python3/dist-packages/hypothesis/internal/conjecture/data.py:946:
in draw
    return strategy.do_draw(self)
/usr/lib/python3/dist-packages/hypothesis/strategies/_internal/lazy.py:156:
in do_draw
    return data.draw(self.wrapped_strategy)
/usr/lib/python3/dist-packages/hypothesis/internal/conjecture/data.py:941:
in draw
    return strategy.do_draw(self)
/usr/lib/python3/dist-packages/hypothesis/extra/numpy.py:324: in do_draw
    self.set_element(data.draw(self.fill), one_element, 0, fill=True)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <hypothesis.extra.numpy.ArrayStrategy object at 0x7f3c083d0d30>
val = 300, result = array([44], dtype=int8), idx = 0

    def set_element(self, val, result, idx, *, fill=False):
        try:
            result[idx] = val
        except TypeError as err:
            raise InvalidArgument(
                f"Could not add element={val!r} of {val.dtype!r} to array of "
                f"{result.dtype!r} - possible mismatch of time units in dtypes?"
            ) from err
        try:
            elem_changed = self._check_elements and val != result[idx]
and val == val
        except Exception as err:  # pragma: no cover
            # This branch only exists to help debug weird behaviour in Numpy,
            # such as the string problems we had a while back.
            raise HypothesisException(
                "Internal error when checking element=%r of %r to array of %r"
                % (val, val.dtype, result.dtype)
            ) from err
        if elem_changed:
            strategy = self.fill if fill else self.element_strategy
            if self.dtype.kind == "f":  # pragma: no cover
                # This logic doesn't trigger in our coverage tests
under Numpy 1.24+,
                # with built-in checks for overflow, but we keep it
for good error
                # messages and compatibility with older versions of Numpy.
                try:
                    is_subnormal = 0 < abs(val) < np.finfo(self.dtype).tiny
                except Exception:
                    # val may be a non-float that does not support the
                    # operations __lt__ and __abs__
                    is_subnormal = False
                if is_subnormal:
                    raise InvalidArgument(
                        f"Generated subnormal float {val} from strategy "
                        f"{strategy} resulted in {result[idx]!r}, probably "
                        "as a result of NumPy being built with flush-to-zero "
                        "compiler options. Consider passing "
                        "allow_subnormal=False."
                    )
>           raise InvalidArgument(
                "Generated array element %r from %r cannot be represented as "
                "dtype %r - instead it becomes %r (type %r).  Consider
using a more "
                "precise strategy, for example passing the `width` argument to "
                "`floats()`."
                % (val, strategy, self.dtype, result[idx], type(result[idx]))
            )
E           hypothesis.errors.InvalidArgument: Generated array element
300 from just(300) cannot be represented as dtype dtype('int8') -
instead it becomes 44 (type <class 'numpy.int8'>).  Consider using a
more precise strategy, for example passing the `width` argument to
`floats()`.
E           Falsifying example: test_overflowing_integers_are_deprecated(
E               data=data(...),
E               fill=True,
E           )

/usr/lib/python3/dist-packages/hypothesis/extra/numpy.py:229: InvalidArgument

--- End Message ---
--- Begin Message ---
Source: python-hypothesis
Source-Version: 6.65.2-1
Done: Timo Röhling <roehl...@debian.org>

We believe that the bug you reported is fixed in the latest version of
python-hypothesis, 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 1030...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Timo Röhling <roehl...@debian.org> (supplier of updated python-hypothesis 
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: Wed, 01 Feb 2023 21:17:16 +0100
Source: python-hypothesis
Architecture: source
Version: 6.65.2-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+pyt...@tracker.debian.org>
Changed-By: Timo Röhling <roehl...@debian.org>
Closes: 1030233
Changes:
 python-hypothesis (6.65.2-1) unstable; urgency=medium
 .
   * Team upload.
   * New upstream version 6.65.2
   * Fix failing numpy test (Closes: #1030233)
Checksums-Sha1:
 c4b7db0dad2749676a674da0c122a0cca2ceaf7c 2553 python-hypothesis_6.65.2-1.dsc
 8a9a2369afd28c6ad3729cb16b9eb6723441e22c 9349229 
python-hypothesis_6.65.2.orig.tar.gz
 466188e36ee1616541f54275f7ea929ea6932358 12784 
python-hypothesis_6.65.2-1.debian.tar.xz
 6ff677fbed180b3dda6229fb2cb597afeaaf8f5d 8628 
python-hypothesis_6.65.2-1_amd64.buildinfo
Checksums-Sha256:
 11408162be01ff9471e83b65ce518defd1fdeeda0d0257f91e75e66b7c2674c0 2553 
python-hypothesis_6.65.2-1.dsc
 7ec99fdc7848527962da7e27dfe4e3bcfe46d4e8d0b17b37d17e808fbe03508b 9349229 
python-hypothesis_6.65.2.orig.tar.gz
 b1794a1bc8eefc2c79488214c436219b24d3af6d59bad82f3abf941acfc687dd 12784 
python-hypothesis_6.65.2-1.debian.tar.xz
 25a0c33c37df560a6da179111dbe87e44b1e1aff5aa767e949c268d13e415ea5 8628 
python-hypothesis_6.65.2-1_amd64.buildinfo
Files:
 dd3c4d85822c7f8c7ccc4c1167475b3d 2553 python optional 
python-hypothesis_6.65.2-1.dsc
 b9e5059b6b6f3513da10c7aca8b3c607 9349229 python optional 
python-hypothesis_6.65.2.orig.tar.gz
 c49edd1f764a9d33245a672bc9580af5 12784 python optional 
python-hypothesis_6.65.2-1.debian.tar.xz
 cfddc6937a369e83e3880953186db42f 8628 python optional 
python-hypothesis_6.65.2-1_amd64.buildinfo

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

iQHIBAEBCgAyFiEEJvtDgpxjkjCIVtam+C8H+466LVkFAmPa1S0UHHJvZWhsaW5n
QGRlYmlhbi5vcmcACgkQ+C8H+466LVl7OwwA9NaKa+cVjzcf/FCfDXii+rVNE67D
rtYgAy2KnczDlwz+Wj4cak/rb0vGW+HR9bC2MH/TUb4JVJSSQ7J9LWt0QAPskKwe
gH5KPaYFOdkPhOwOAkIAExOZe1619+p3KSfmsz89XgOBZ9e+z1qdgkruvB7YYoZT
iOXa7FMG6vAIl513hm7Tajo5ag5Y+lwSNpHRnVaXiT0H16jjXVrTGZ+XOjFQefAS
UYH6mnEnbXjUo67hbtrKXFZVjjguaeUy0gm83DhhZZPkiM7XHADVed73Kgb0AKIf
tU5kPzTq0SvtyiXT000GVP4SQ+5P0QAszxS5WkMhFJM7sx3ehvvEjbxVpDIlsIyV
g05MOwnvxB8cX0F76H6dj9mblmEMbqRXidAizCI4lB9Te8RTnig5ZFBN9I6uCPTl
tZbpxHAyslbcenLRtfIRY3oPHCcreqygd5+HCBCbkRAKvmwARzaK10107DR5NTnH
DCobB7/W/ZhUGXmmmRHPtUebz8Pn7tE0A72t
=ISJ3
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to