Skip to content

Commit 84b9c47

Browse files
robot-pigletqyryq
authored andcommitted
Update contrib/python/hypothesis/py3 to 6.136.2
commit_hash:aaf72f1c1b3aa7cf161d27d86c119860b25c0b21
1 parent bb49eb9 commit 84b9c47

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+4793
-2237
lines changed

contrib/python/hypothesis/py3/.dist-info/METADATA

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Metadata-Version: 2.4
22
Name: hypothesis
3-
Version: 6.130.13
3+
Version: 6.136.2
44
Summary: A library for property-based testing
55
Author-email: "David R. MacIver and Zac Hatfield-Dodds" <david@drmaciver.com>
66
License-Expression: MPL-2.0
@@ -61,8 +61,8 @@ Requires-Dist: dpcontracts>=0.4; extra == "dpcontracts"
6161
Provides-Extra: redis
6262
Requires-Dist: redis>=3.0.0; extra == "redis"
6363
Provides-Extra: crosshair
64-
Requires-Dist: hypothesis-crosshair>=0.0.20; extra == "crosshair"
65-
Requires-Dist: crosshair-tool>=0.0.85; extra == "crosshair"
64+
Requires-Dist: hypothesis-crosshair>=0.0.23; extra == "crosshair"
65+
Requires-Dist: crosshair-tool>=0.0.88; extra == "crosshair"
6666
Provides-Extra: zoneinfo
6767
Requires-Dist: tzdata>=2025.2; (sys_platform == "win32" or sys_platform == "emscripten") and extra == "zoneinfo"
6868
Provides-Extra: django
@@ -72,10 +72,10 @@ Requires-Dist: watchdog>=4.0.0; extra == "watchdog"
7272
Provides-Extra: all
7373
Requires-Dist: black>=19.10b0; extra == "all"
7474
Requires-Dist: click>=7.0; extra == "all"
75-
Requires-Dist: crosshair-tool>=0.0.85; extra == "all"
75+
Requires-Dist: crosshair-tool>=0.0.88; extra == "all"
7676
Requires-Dist: django>=4.2; extra == "all"
7777
Requires-Dist: dpcontracts>=0.4; extra == "all"
78-
Requires-Dist: hypothesis-crosshair>=0.0.20; extra == "all"
78+
Requires-Dist: hypothesis-crosshair>=0.0.23; extra == "all"
7979
Requires-Dist: lark>=0.10.1; extra == "all"
8080
Requires-Dist: libcst>=0.3.16; extra == "all"
8181
Requires-Dist: numpy>=1.19.3; extra == "all"

contrib/python/hypothesis/py3/_hypothesis_ftz_detector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def run_in_process(fn: Callable[..., FTZCulprits], *args: object) -> FTZCulprits
5252
import multiprocessing as mp
5353

5454
mp.set_start_method("spawn", force=True)
55-
q: "Queue[FTZCulprits]" = mp.Queue()
55+
q: Queue[FTZCulprits] = mp.Queue()
5656
p = mp.Process(target=target, args=(q, fn, *args))
5757
p.start()
5858
retval = q.get()

contrib/python/hypothesis/py3/_hypothesis_pytestplugin.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,7 @@ def pytest_runtest_call(item):
203203
yield
204204
return
205205

206-
from hypothesis import core
207-
from hypothesis.internal.detection import is_hypothesis_test
206+
from hypothesis import core, is_hypothesis_test
208207

209208
# See https://github.com/pytest-dev/pytest/issues/9159
210209
core.pytest_shows_exceptiongroups = (
@@ -306,6 +305,9 @@ def note_statistics(stats):
306305
item.hypothesis_statistics = describe_statistics(stats)
307306

308307
with collector.with_value(note_statistics):
308+
# NOTE: For compatibility with Python 3.9's LL(1)
309+
# parser, this is written as a nested with-statement,
310+
# instead of a compound one.
309311
with with_reporter(store):
310312
with current_pytest_item.with_value(item):
311313
yield
@@ -383,9 +385,9 @@ def pytest_terminal_summary(terminalreporter):
383385
stats = report.__dict__.get(STATS_KEY)
384386
if stats and print_stats:
385387
terminalreporter.write_line(stats + "\n\n")
386-
fex = report.__dict__.get(FAILING_EXAMPLES_KEY)
387-
if fex:
388-
failing_examples.append(json.loads(fex))
388+
examples = report.__dict__.get(FAILING_EXAMPLES_KEY)
389+
if examples:
390+
failing_examples.append(json.loads(examples))
389391

390392
from hypothesis.internal.observability import _WROTE_TO
391393

@@ -415,7 +417,7 @@ def pytest_collection_modifyitems(items):
415417
if "hypothesis" not in sys.modules:
416418
return
417419

418-
from hypothesis.internal.detection import is_hypothesis_test
420+
from hypothesis import is_hypothesis_test
419421

420422
for item in items:
421423
if isinstance(item, pytest.Function) and is_hypothesis_test(item.obj):
@@ -433,7 +435,7 @@ def pytest_sessionstart(session):
433435

434436
def _ban_given_call(self, function):
435437
if "hypothesis" in sys.modules:
436-
from hypothesis.internal.detection import is_hypothesis_test
438+
from hypothesis import is_hypothesis_test
437439

438440
if is_hypothesis_test(function):
439441
raise RuntimeError(

contrib/python/hypothesis/py3/hypothesis/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
)
2929
from hypothesis.core import example, find, given, reproduce_failure, seed
3030
from hypothesis.entry_points import run
31+
from hypothesis.internal.detection import is_hypothesis_test
3132
from hypothesis.internal.entropy import register_random
3233
from hypothesis.utils.conventions import infer
3334
from hypothesis.version import __version__, __version_info__
@@ -45,6 +46,7 @@
4546
"find",
4647
"given",
4748
"infer",
49+
"is_hypothesis_test",
4850
"note",
4951
"register_random",
5052
"reject",

0 commit comments

Comments
 (0)