Skip to content

Commit 6057dd2

Browse files
committed
Merge branch 'master' into next2
2 parents 3d2a6d1 + db13c04 commit 6057dd2

File tree

12 files changed

+51
-37
lines changed

12 files changed

+51
-37
lines changed

hypothesis-python/RELEASE.rst

Lines changed: 0 additions & 3 deletions
This file was deleted.

hypothesis-python/docs/changelog.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,22 @@ Hypothesis 6.x
1818

1919
.. include:: ../RELEASE.rst
2020

21+
.. _v6.138.15:
22+
23+
---------------------
24+
6.138.15 - 2025-09-08
25+
---------------------
26+
27+
Refactor some stateful testing internals for easier use by third-party libraries.
28+
29+
.. _v6.138.14:
30+
31+
---------------------
32+
6.138.14 - 2025-09-02
33+
---------------------
34+
35+
Patch files written by hypothesis now use a deterministic ordering when multiple |@example| decorators are present.
36+
2137
.. _v6.138.13:
2238

2339
---------------------

hypothesis-python/src/hypothesis/stateful.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ def get_state_machine_test(state_machine_factory, *, settings=None, _min_steps=0
112112

113113
@settings
114114
@given(st.data())
115-
def run_state_machine(factory, data):
115+
def run_state_machine(data):
116116
cd = data.conjecture_data
117-
machine: RuleBasedStateMachine = factory()
117+
machine: RuleBasedStateMachine = state_machine_factory()
118118
check_type(RuleBasedStateMachine, machine, "state_machine_factory()")
119119
cd.hypothesis_runner = machine
120120
machine._observability_predicates = cd._observability_predicates # alias
@@ -254,7 +254,7 @@ def run_state_machine_as_test(state_machine_factory, *, settings=None, _min_step
254254
state_machine_test = get_state_machine_test(
255255
state_machine_factory, settings=settings, _min_steps=_min_steps
256256
)
257-
state_machine_test(state_machine_factory)
257+
state_machine_test()
258258

259259

260260
class StateMachineMeta(type):

hypothesis-python/src/hypothesis/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
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-
__version_info__ = (6, 138, 13)
11+
__version_info__ = (6, 138, 15)
1212
__version__ = ".".join(map(str, __version_info__))

hypothesis-python/tests/watchdog/test_database.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
)
2323
from hypothesis.internal.compat import WINDOWS
2424

25-
from tests.common.utils import skipif_threading, wait_for
25+
from tests.common.utils import flaky, skipif_threading, wait_for
2626
from tests.cover.test_database_backend import _database_conforms_to_listener_api
2727

2828
# e.g.
@@ -180,6 +180,7 @@ def listener(event):
180180
raise NotImplementedError(f"unknown platform {sys.platform}")
181181

182182

183+
@flaky(max_runs=5, min_passes=1) # time_sleep(0.1) probably isn't enough here
183184
@skipif_threading # add_listener is not thread safe because watchdog is not
184185
def test_database_listener_directory_move(tmp_path):
185186
db = DirectoryBasedExampleDatabase(tmp_path)

hypothesis-python/tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,10 @@ setenv=
175175
nocontrib: DJANGO_SETTINGS_MODULE=tests.django.toys.settings.settings_no_contrib
176176
deps=
177177
-r../requirements/test.txt
178-
django42: django==4.2.23
179-
django51: django==5.1.11
180-
django52: django==5.2.5
181-
django-nocontrib: django==5.2.5
178+
django42: django==4.2.24
179+
django51: django==5.1.12
180+
django52: django==5.2.6
181+
django-nocontrib: django==5.2.6
182182
commands =
183183
python -bb -X dev -m tests.django.manage test tests.django {posargs}
184184

requirements/coverage.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ exceptiongroup==1.3.0 ; python_version < "3.11"
2626
# pytest
2727
execnet==2.1.1
2828
# via pytest-xdist
29-
fakeredis==2.31.0
29+
fakeredis==2.31.1
3030
# via -r requirements/coverage.in
3131
iniconfig==2.1.0
3232
# via pytest
@@ -62,12 +62,12 @@ pyarrow==21.0.0
6262
# via -r requirements/coverage.in
6363
pygments==2.19.2
6464
# via pytest
65-
pytest==8.4.1
65+
pytest==8.4.2
6666
# via
6767
# -r requirements/test.in
6868
# pytest-cov
6969
# pytest-xdist
70-
pytest-cov==6.2.1
70+
pytest-cov==6.3.0
7171
# via -r requirements/coverage.in
7272
pytest-xdist==3.8.0
7373
# via -r requirements/test.in

requirements/crosshair.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ attrs==25.3.0
1010
# hypothesis
1111
# hypothesis (hypothesis-python/pyproject.toml)
1212
# lsprotocol
13-
cattrs==25.1.1
13+
cattrs==25.2.0
1414
# via
1515
# lsprotocol
1616
# pygls
@@ -26,7 +26,7 @@ exceptiongroup==1.3.0 ; python_version < "3.11"
2626
# pytest
2727
execnet==2.1.1
2828
# via pytest-xdist
29-
hypothesis==6.138.8
29+
hypothesis==6.138.14
3030
# via hypothesis-crosshair
3131
hypothesis-crosshair==0.0.25
3232
# via -r requirements/crosshair.in
@@ -54,7 +54,7 @@ pygls==1.3.1
5454
# via crosshair-tool
5555
pygments==2.19.2
5656
# via pytest
57-
pytest==8.4.1
57+
pytest==8.4.2
5858
# via
5959
# -r requirements/test.in
6060
# pytest-xdist

requirements/fuzzing.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ exceptiongroup==1.3.0 ; python_version < "3.11"
4343
# trio
4444
execnet==2.1.1
4545
# via pytest-xdist
46-
fakeredis==2.31.0
46+
fakeredis==2.31.1
4747
# via -r requirements/coverage.in
4848
h11==0.16.0
4949
# via
@@ -57,9 +57,9 @@ hypercorn==0.17.3
5757
# via hypofuzz
5858
hyperframe==6.1.0
5959
# via h2
60-
hypofuzz==25.8.2
60+
hypofuzz==25.9.1
6161
# via -r requirements/fuzzing.in
62-
hypothesis[cli,watchdog]==6.138.8
62+
hypothesis[cli,watchdog]==6.138.14
6363
# via hypofuzz
6464
idna==3.10
6565
# via
@@ -113,13 +113,13 @@ pygments==2.19.2
113113
# via
114114
# pytest
115115
# rich
116-
pytest==8.4.1
116+
pytest==8.4.2
117117
# via
118118
# -r requirements/test.in
119119
# hypofuzz
120120
# pytest-cov
121121
# pytest-xdist
122-
pytest-cov==6.2.1
122+
pytest-cov==6.3.0
123123
# via -r requirements/coverage.in
124124
pytest-xdist==3.8.0
125125
# via -r requirements/test.in

requirements/test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ptyprocess==0.7.0
2424
# via pexpect
2525
pygments==2.19.2
2626
# via pytest
27-
pytest==8.4.1
27+
pytest==8.4.2
2828
# via
2929
# -r requirements/test.in
3030
# pytest-xdist

0 commit comments

Comments
 (0)