-
Notifications
You must be signed in to change notification settings - Fork 587
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
83 additions
and
12 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
RELEASE_TYPE: minor | ||
|
||
This release deprecates use of the global random number generator while drawing | ||
from a strategy, because this makes test cases less diverse and prevents us | ||
from reporting minimal counterexamples (:issue:`3810`). | ||
|
||
If you see this new warning, you can get a quick fix by using | ||
:func:`~hypothesis.strategies.randoms`; or use more idiomatic strategies | ||
:func:`~hypothesis.strategies.sampled_from`, :func:`~hypothesis.strategies.floats`, | ||
:func:`~hypothesis.strategies.integers`, and so on. | ||
|
||
Note that the same problem applies to e.g. ``numpy.random``, but | ||
for performance reasons we only check the stdlib :mod:`random` module - | ||
ignoring even other sources passed to :func:`~hypothesis.register_random`. |
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
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