diff options
| author | robot-piglet <[email protected]> | 2026-05-12 16:44:51 +0300 |
|---|---|---|
| committer | robot-piglet <[email protected]> | 2026-05-12 17:23:24 +0300 |
| commit | d4e2776cb1e96d45483cdb79d17312206d28e162 (patch) | |
| tree | ae2511a120b89d8d64aa2625b6e908b3796b8aa1 /contrib/python/hypothesis | |
| parent | 3301ad4eaf0ab643b35017edbe57f951907fc916 (diff) | |
Intermediate changes
commit_hash:4a03f8e6cde7c6d79572c9fbd14f8d4c27061968
Diffstat (limited to 'contrib/python/hypothesis')
4 files changed, 9 insertions, 4 deletions
diff --git a/contrib/python/hypothesis/py3/.dist-info/METADATA b/contrib/python/hypothesis/py3/.dist-info/METADATA index bd042f7a870..580a70f4d19 100644 --- a/contrib/python/hypothesis/py3/.dist-info/METADATA +++ b/contrib/python/hypothesis/py3/.dist-info/METADATA @@ -1,6 +1,6 @@ Metadata-Version: 2.4 Name: hypothesis -Version: 6.152.2 +Version: 6.152.3 Summary: The property-based testing library for Python Author-email: "David R. MacIver and Zac Hatfield-Dodds" <[email protected]> License-Expression: MPL-2.0 diff --git a/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/providers.py b/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/providers.py index f3b3daef036..be8bbeebf89 100644 --- a/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/providers.py +++ b/contrib/python/hypothesis/py3/hypothesis/internal/conjecture/providers.py @@ -1232,7 +1232,12 @@ class URandom(Random): @staticmethod def _urandom(size: int) -> bytes: - with open("/dev/urandom", "rb") as f: + # By default, we buffer more data from /dev/urandom than the actual `size` number + # of bytes we requested. This trips up anyone (and particularly Antithesis) + # hooking /dev/urandom reads to control randomness. + # + # buffering=0 disables this behavior. + with open("/dev/urandom", "rb", buffering=0) as f: return f.read(size) def getrandbits(self, k: int) -> int: diff --git a/contrib/python/hypothesis/py3/hypothesis/version.py b/contrib/python/hypothesis/py3/hypothesis/version.py index d5d6fbf4966..57b18a91d8e 100644 --- a/contrib/python/hypothesis/py3/hypothesis/version.py +++ b/contrib/python/hypothesis/py3/hypothesis/version.py @@ -8,5 +8,5 @@ # v. 2.0. If a copy of the MPL was not distributed with this file, You can # obtain one at https://mozilla.org/MPL/2.0/. -__version_info__ = (6, 152, 2) +__version_info__ = (6, 152, 3) __version__ = ".".join(map(str, __version_info__)) diff --git a/contrib/python/hypothesis/py3/ya.make b/contrib/python/hypothesis/py3/ya.make index bea79f924ab..789baacebd1 100644 --- a/contrib/python/hypothesis/py3/ya.make +++ b/contrib/python/hypothesis/py3/ya.make @@ -2,7 +2,7 @@ PY3_LIBRARY() -VERSION(6.152.2) +VERSION(6.152.3) LICENSE(MPL-2.0) |
