Skip to content

Commit 2d099ca

Browse files
committed
Typo fix, add RELEASE
1 parent f6b443b commit 2d099ca

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

hypothesis-python/RELEASE.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
RELEASE_TYPE: patch
2+
3+
This patch re-enables the warning for incompatible :func:`~hypothesis.strategies.shared`
4+
strategies that was first enabled in :v:`6.133.0` but disabled in :v:`6.135.15`.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ def do_draw(self, data: ConjectureData) -> Ex:
702702
isinstance(x, SearchStrategy) for x in self.elements
703703
):
704704
data._sampled_from_all_strategies_elements_message = (
705-
"sample_from was given a collection of strategies: "
705+
"sampled_from was given a collection of strategies: "
706706
"{!r}. Was one_of intended?",
707707
self.elements,
708708
)

hypothesis-python/tests/cover/test_sampled_from.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ def test_error_appropriate_error_note_3819(
313313
matching_messages = [
314314
n
315315
for n in notes
316-
if n.startswith("sample_from was given a collection of strategies")
316+
if n.startswith("sampled_from was given a collection of strategies")
317317
and n.endswith("Was one_of intended?")
318318
]
319319
assert len(matching_messages) == (1 if should_exp_msg else 0)

0 commit comments

Comments
 (0)