Skip to content

Commit 714bc5d

Browse files
committed
add more tests, reword release notes
1 parent 2f0981b commit 714bc5d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

hypothesis-python/RELEASE.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
RELEASE_TYPE: minor
22

3-
The :doc:`Hypothesis example database <database>` now uses a new internal format to store examples. The new format is not compatible with the previous format, so any old stored counterexamples will be silently discarded.
3+
The :doc:`Hypothesis example database <database>` now uses a new internal format to store examples. This new format is not compatible with the previous format, so stored entries will not carry over.
44

5-
If you are replaying counterexamples using an external database such as :class:`~hypothesis.database.GitHubArtifactDatabase`, this means the counterexample must have been found after this version in the external database to successfully replay locally. In short, the Hypothesis versions of the local and remote databases should be both before or both after this version.
5+
The database is best thought of as a cache that may be invalidated at times. Instead of relying on it for correctness, we recommend using :obj:`@example <hypothesis.example>` to specify explicit examples. When using databases across environments (such as connecting a :class:`~hypothesis.database.GitHubArtifactDatabase` database in CI to your local environment), we recommend using the same version of Hypothesis for each where possible, for maximum reproducibility.

hypothesis-python/tests/conjecture/test_ir.py

+3
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,10 @@ def test_draw_directly_explicit():
891891
"choices1, choices2",
892892
[
893893
[(True,), (1,)],
894+
[(True,), (1.0,)],
894895
[(False,), (0,)],
896+
[(False,), (0.0,)],
897+
[(False,), (-0.0,)],
895898
[(0.0,), (-0.0,)],
896899
],
897900
)

0 commit comments

Comments
 (0)