Your message dated Tue, 16 Jan 2024 13:37:30 +0000
with message-id <[email protected]>
and subject line Bug#1059897: fixed in python-hypothesis 6.93.2-1
has caused the Debian Bug report #1059897,
regarding python-hypothesis: flaky 
tests/quality/test_discovery_ability.py::test_can_produce_multi_line_string
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 [email protected]
immediately.)


-- 
1059897: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1059897
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: python-hypothesis
Version: 6.92.2-1
Severity: important
Tags: ftbfs
Forwarded: https://github.com/HypothesisWorks/hypothesis/issues/3829

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

Recently, I started to see intermittent test failures for 
test_can_produce_multi_line_strings in Debian package builds. I don't 
know if this is some sort of regression in version 6.92.2 or if this 
test has always been a bit flaky and merely became more likely to fail 
because Debian runs the test suite twice at the moment (Python 3.11 and 
Python 3.12).

Example failure for Python 3.11:
https://buildd.debian.org/status/fetch.php?pkg=python-hypothesis&arch=all&ver=6.92.2-1&stamp=1703980481&raw=0

_____________________ test_can_produce_multi_line_strings ______________________
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 341, in 
from_call
    result: Optional[TResult] = func()
                                ^^^^^^
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 262, in <lambda>
    lambda: ihook(item=item, **kwds), when=when, reraise=reraise
            ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 493, in __call__
    return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 115, in 
_hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 152, in 
_multicall
    return outcome.get_result()
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/pluggy/_result.py", line 114, in 
get_result
    raise exc.with_traceback(exc.__traceback__)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 77, in 
_multicall
    res = hook_impl.function(*args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 177, in 
pytest_runtest_call
    raise e
  File "/usr/lib/python3/dist-packages/_pytest/runner.py", line 169, in 
pytest_runtest_call
    item.runtest()
  File "/usr/lib/python3/dist-packages/_pytest/python.py", line 1792, in runtest
    self.ihook.pytest_pyfunc_call(pyfuncitem=self)
  File "/usr/lib/python3/dist-packages/pluggy/_hooks.py", line 493, in __call__
    return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/pluggy/_manager.py", line 115, in 
_hookexec
    return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 113, in 
_multicall
    raise exception.with_traceback(exception.__traceback__)
  File "/usr/lib/python3/dist-packages/pluggy/_callers.py", line 77, in 
_multicall
    res = hook_impl.function(*args)
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/_pytest/python.py", line 194, in 
pytest_pyfunc_call
    result = testfunction(**testargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File 
"/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_hypothesis/build/tests/quality/test_discovery_ability.py",
 line 118, in run_test
    raise HypothesisFalsified(
tests.quality.test_discovery_ability.HypothesisFalsified: P(lambda x: "\n" in 
x) ~ 47 / 98 = 0.48 < 0.50; rejected


Example failure for Python 3.12:
https://salsa.debian.org/python-team/packages/python-hypothesis/-/jobs/5108379

_____________________ test_can_produce_multi_line_strings ______________________
    def run_test():
        if condition is None:
    
            def _condition(x):
                return True
    
            condition_string = ""
        else:
            _condition = condition
            condition_string = strip_lambda(
                reflection.get_pretty_function_description(condition)
            )
    
        def test_function(data):
            with BuildContext(data):
                try:
                    value = data.draw(specifier)
                except UnsatisfiedAssumption:
                    data.mark_invalid()
                if not _condition(value):
                    data.mark_invalid()
                if predicate(value):
                    data.mark_interesting()
    
        successes = 0
        actual_runs = 0
        for actual_runs in range(1, RUNS + 1):
            # We choose the max_examples a bit larger than default so that we
            # run at least 100 examples outside of the small example generation
            # part of the generation phase.
            runner = ConjectureRunner(
                test_function,
                settings=Settings(
                    max_examples=150,
                    phases=no_shrink,
                    suppress_health_check=suppress_health_check,
                ),
            )
            runner.run()
            if runner.interesting_examples:
                successes += 1
                if successes >= required_runs:
                    return
    
            # If we reach a point where it's impossible to hit our target even
            # if every remaining attempt were to succeed, give up early and
            # report failure.
            if (required_runs - successes) > (RUNS - actual_runs):
                break
    
        event = reflection.get_pretty_function_description(predicate)
        if condition is not None:
            event += "|"
            event += condition_string
    
>       raise HypothesisFalsified(
            f"P({event}) ~ {successes} / {actual_runs} = "
            f"{successes / actual_runs:.2f} < {required_runs / RUNS:.2f}; "
            "rejected"
        )
E       tests.quality.test_discovery_ability.HypothesisFalsified: P(lambda x: 
"\n" in x) ~ 44 / 95 = 0.46 < 0.50; rejected
tests/quality/test_discovery_ability.py:118: HypothesisFalsified


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

iQGzBAEBCgAdFiEEJvtDgpxjkjCIVtam+C8H+466LVkFAmWVJEoACgkQ+C8H+466
LVlueQwAi40LADd5VRN6qzbWtut9IVZF49aAmFVyY9LliNq9GMVdski2bPuzxAj8
Meh7g9jFuAuObnPtapjw644t89maaXaPue4l17OYPiWeuhLzMJrvZd5rivQUgZXQ
hLFmLIAFVdbN0mCdO0cnIj1XxI+KFpny6cYVvahla+KG7PY3HTbUm36XrSuoG9LO
LHynLquooZVeZI/VU7Q6vNspWdOitcRTW133YwZy0bQrY41mr0CqC4st6DyNIVt+
x0qkevKUNZHGdUMrJ8J5J8noEo1fft95iguL6gD5+uIYejL5Zr6YpFBKrcg/3oX2
iACAAPwtLOXFjG+f3n5tUPDSENdQvf8asch7/c5s7DY/CGZlubX5JRg7t2axVDXh
oO72kjjkqXC1GGcmgf4W/B/L4ioOb+UcMdFXBaC5ruq24lBXOkfcvff8m7ZipoDU
CAWD1wo61iLfmvX8s8YxbM7xBEsVf9o5Q8XHOpLBVZJCPa90ikg9DjkIQQz4Bubx
bjldKKvB
=PuO1
-----END PGP SIGNATURE-----

--- End Message ---
--- Begin Message ---
Source: python-hypothesis
Source-Version: 6.93.2-1
Done: Timo Röhling <[email protected]>

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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Timo Röhling <[email protected]> (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 [email protected])


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

Format: 1.8
Date: Tue, 16 Jan 2024 14:01:43 +0100
Source: python-hypothesis
Architecture: source
Version: 6.93.2-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Timo Röhling <[email protected]>
Closes: 1059897
Changes:
 python-hypothesis (6.93.2-1) unstable; urgency=medium
 .
   * New upstream version 6.93.2
     - Fix flaky test_can_produce_multi_line_strings (Closes: #1059897)
Checksums-Sha1:
 995b6176b699e8fcf0f4de5b00f7d24a8fd8e941 2785 python-hypothesis_6.93.2-1.dsc
 0bcd5040e32f5b0cb504c7651b25ea8c8a267d24 9415414 
python-hypothesis_6.93.2.orig.tar.gz
 9ca1aba6674ecf87b378aa1809fffd276c88a3ad 14292 
python-hypothesis_6.93.2-1.debian.tar.xz
Checksums-Sha256:
 041a1c5bceabf92e39beb039513e8643bd089261c2db165296886f4c51069f02 2785 
python-hypothesis_6.93.2-1.dsc
 4cc9489c742cd16bfe3e1409e578a5f9b7bfd72a14a30f0751a751739ec8ab89 9415414 
python-hypothesis_6.93.2.orig.tar.gz
 3b31dc77f772ab10ee05d49441cb09396e7358f7f7df29646c354570e6350aad 14292 
python-hypothesis_6.93.2-1.debian.tar.xz
Files:
 cf998fdf58b4eead8f496c4794055e7b 2785 python optional 
python-hypothesis_6.93.2-1.dsc
 3ff28faec50937c7e2f889daceb55e18 9415414 python optional 
python-hypothesis_6.93.2.orig.tar.gz
 4a2161fcf6bd1f603372e923874ff048 14292 python optional 
python-hypothesis_6.93.2-1.debian.tar.xz

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

iQHIBAEBCgAyFiEEJvtDgpxjkjCIVtam+C8H+466LVkFAmWmg7wUHHJvZWhsaW5n
QGRlYmlhbi5vcmcACgkQ+C8H+466LVlgmAwAuXIxKj/To0OeoYGNlshPW8GCNXid
drHOi2+Om/dGobZjp801p6jRId0ZGmV/O0mnfNYFhU2CP9BIhFGcSMJqq47bztZO
BR7EPFGs6dl+fsEBYIKzG0SvWyKeCVYLRkd8WhKvLoNagb2pCyvIvg97HY4Y0K+c
SGnrL+9HPUcb0K14y0PSBnijwxZI5qbnxnQ3PTCAKyGiBdf/yb+7hrNnqKbLme9r
GtbNrjjrjeCnuwp6ouzHo3wba+0aGb5WqFQQbtKkzC0q4MqbYohyvFeG5aY3wUAY
VqnYth1wXOfra+gOi5UwI/dfgoj2jOmm9eD31c5wlDdd2Ie4gTuMVCe9WPEx+77t
8Yvb5LdnV0Gn8B2WP7VSawmWJqpHy3oGkOMJejfynTOxI6QL3HURWKfUGl3mooZE
AtuIQ5SSuU3ENjvCCK9bdy4QA3EKl6jcLILE+DMmIFZYSrMWQyzMYO7zOzZ6loxj
R6a3VvGWgh367eC3oy2Zpn4mk9RrK+sDyweG
=pghF
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to