diff options
| author | robot-piglet <[email protected]> | 2026-02-18 14:01:04 +0300 |
|---|---|---|
| committer | robot-piglet <[email protected]> | 2026-02-18 14:38:54 +0300 |
| commit | 8a96c515f91abcecd00c296434d32ce30c88eb7c (patch) | |
| tree | 8ecfe2f1688e930215320aa90877e41f9db6d090 /contrib/python | |
| parent | dd41d08283d0cb46e23937f007ef0858dee28807 (diff) | |
Intermediate changes
commit_hash:7f8abd6bd482578100e3b9b57246911033dcf35c
Diffstat (limited to 'contrib/python')
4 files changed, 15 insertions, 3 deletions
diff --git a/contrib/python/hypothesis/py3/.dist-info/METADATA b/contrib/python/hypothesis/py3/.dist-info/METADATA index 813a5d8794f..b3f079a100c 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.151.4 +Version: 6.151.5 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_pytestplugin.py b/contrib/python/hypothesis/py3/_hypothesis_pytestplugin.py index 340bf90ebfa..6838e3ac76b 100644 --- a/contrib/python/hypothesis/py3/_hypothesis_pytestplugin.py +++ b/contrib/python/hypothesis/py3/_hypothesis_pytestplugin.py @@ -427,9 +427,21 @@ else: from hypothesis import is_hypothesis_test + has_hypothesis_tests = False for item in items: if isinstance(item, pytest.Function) and is_hypothesis_test(item.obj): item.add_marker("hypothesis") + has_hypothesis_tests = True + + if has_hypothesis_tests: + # Collect local constants now, during test collection, so that this + # time is not attributed to whatever test happens to run first. + # (see https://github.com/HypothesisWorks/hypothesis/issues/4627) + # We might miss weird wrapped uses (if there are no other PBTs!), + # in order to avoid the latency from inefficient 3rd party plugins. + from hypothesis.internal.conjecture.providers import _get_local_constants + + _get_local_constants() def pytest_sessionstart(session): # Note: may be called multiple times, so we can go negative diff --git a/contrib/python/hypothesis/py3/hypothesis/version.py b/contrib/python/hypothesis/py3/hypothesis/version.py index 6a327428073..1cdc1db6a60 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, 151, 4) +__version_info__ = (6, 151, 5) __version__ = ".".join(map(str, __version_info__)) diff --git a/contrib/python/hypothesis/py3/ya.make b/contrib/python/hypothesis/py3/ya.make index 8445eaba96a..3551b36fcb8 100644 --- a/contrib/python/hypothesis/py3/ya.make +++ b/contrib/python/hypothesis/py3/ya.make @@ -2,7 +2,7 @@ PY3_LIBRARY() -VERSION(6.151.4) +VERSION(6.151.5) LICENSE(MPL-2.0) |
