-
Notifications
You must be signed in to change notification settings - Fork 591
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3820 from vreuter/vr/warn-sampling-stategies-issu…
…e3819 Add note to TypeError when each element to `sampled_from` is a strategy
- Loading branch information
Showing
5 changed files
with
148 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -181,6 +181,7 @@ their individual contributions. | |
* `Tyler Gibbons <https://www.github.com/kavec>`_ ([email protected]) | ||
* `Tyler Nickerson <https://www.github.com/nmbrgts>`_ | ||
* `Vidya Rani <https://www.github.com/vidyarani-dg>`_ ([email protected]) | ||
* `Vince Reuter <https://github.com/vreuter>`_ ([email protected]) | ||
* `Vincent Michel <https://www.github.com/vxgmichel>`_ ([email protected]) | ||
* `Viorel Pluta <https://github.com/viopl>`_ ([email protected]) | ||
* `Vytautas Strimaitis <https://www.github.com/vstrimaitis>`_ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
RELEASE_TYPE: patch | ||
|
||
If a test uses :func:`~hypothesis.strategies.sampled_from` on a sequence of | ||
strategies, and raises a ``TypeError``, we now :pep:`add a note <678>` asking | ||
whether you meant to use :func:`~hypothesis.strategies.one_of`. | ||
|
||
Thanks to Vince Reuter for suggesting and implementing this hint! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters