-
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.
- Loading branch information
Showing
1 changed file
with
9 additions
and
1 deletion.
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 |
---|---|---|
@@ -1,3 +1,11 @@ | ||
RELEASE_TYPE: minor | ||
|
||
FILL ME IN LATER | ||
Since :ref:`v6.27.1 <_v6.27.1>` the backing data structure of | ||
:func:`~hypothesis.register_random` is a :class:`weakref.WeakKeyDictionary`. As a | ||
consequence, passing an unreferenced object to :func:`~hypothesis.register_random` will | ||
have no affect on Hypothesis' tracking of RNG sources. This patch modifies | ||
:func:`~hypothesis.register_random` to raise an error when it is passed an unreferenced | ||
object, and to emit a warning when it looks like it was passed an object that is only | ||
referenced within a temporary scope. These checks are not performed by PyPy's | ||
interpreter. The type annotation of :func:`~hypothesis.register_random` was also | ||
widened to permit structural subtypes of ``random.Random``. |