Skip to content

Commit c9a1403

Browse files
authored
Merge pull request #3486 from Kludex/patch-1
2 parents 27b2982 + 97e575e commit c9a1403

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

hypothesis-python/RELEASE.rst

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
RELEASE_TYPE: patch
2+
3+
This patch updates some docs, and depends on :pypi:`exceptiongroup` 1.0.0
4+
final to avoid a bug in the previous version.

hypothesis-python/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def local_file(name):
102102
extras_require=extras,
103103
install_requires=[
104104
"attrs>=19.2.0",
105-
"exceptiongroup>=1.0.0rc8 ; python_version<'3.11'",
105+
"exceptiongroup>=1.0.0 ; python_version<'3.11'",
106106
"sortedcontainers>=2.1.0,<3.0.0",
107107
],
108108
python_requires=">=3.7",

hypothesis-python/src/hypothesis/_settings.py

+9-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
99
# obtain one at https://mozilla.org/MPL/2.0/.
1010

11-
"""A module controlling settings for Hypothesis to use in falsification.
11+
"""The settings module configures runtime options for Hypothesis.
1212
1313
Either an explicit settings object can be used or the default object on
1414
this module can be modified.
@@ -120,9 +120,8 @@ def __setattr__(cls, name, value):
120120

121121

122122
class settings(metaclass=settingsMeta):
123-
"""A settings object controls a variety of parameters that are used in
124-
falsification. These may control both the falsification strategy and the
125-
details of the data that is generated.
123+
"""A settings object configures options including verbosity, runtime controls,
124+
persistence, determinism, and more.
126125
127126
Default values are picked up from the settings.default object and
128127
changes made there will be picked up in newly created settings.
@@ -364,7 +363,12 @@ def _max_examples_validator(x):
364363
validator=_max_examples_validator,
365364
description="""
366365
Once this many satisfying examples have been considered without finding any
367-
counter-example, falsification will terminate.
366+
counter-example, Hypothesis will stop looking.
367+
368+
Note that we might call your test function fewer times if we find a bug early
369+
or can tell that we've exhausted the search space; or more if we discard some
370+
examples due to use of .filter(), assume(), or a few other things that can
371+
prevent the test case from completing successfully.
368372
369373
The default value is chosen to suit a workflow where the test will be part of
370374
a suite that is regularly executed locally or on a CI server, balancing total

hypothesis-python/src/hypothesis/strategies/_internal/core.py

+1
Original file line numberDiff line numberDiff line change
@@ -1497,6 +1497,7 @@ class DrawFn(Protocol):
14971497
def list_and_index(draw: DrawFn) -> Tuple[int, str]:
14981498
i = draw(integers()) # type inferred as 'int'
14991499
s = draw(text()) # type inferred as 'str'
1500+
return i, s
15001501
15011502
"""
15021503

0 commit comments

Comments
 (0)