This release lays the groundwork for automatic rewriting of simple
filters, for example converting "integers().filter(lambda x: x > 9)"
to "integers(min_value=10)".
Note that this is not supported yet, and we will continue to
recommend writing the efficient form directly wherever possible -
predicate rewriting is provided mainly for the benefit of downstream
libraries which would otherwise have to implement it for themselves
(e.g. pandera and icontract-hypothesis). See issue #2701 for details.
The Hypothesis pytest plugin now requires pytest version 4.6 or later.
If the plugin detects an earlier version of pytest, it will
automatically deactivate itself.
(4.6.x is the earliest pytest branch that still accepts community
bugfixes.)
Hypothesis-based tests should continue to work in earlier versions of
pytest, but enhanced integrations provided by the plugin (such as "--
hypothesis-show-statistics" and other command-line flags) will no
longer be available in obsolete pytest versions.
If you use pytest-html, Hypothesis now includes the summary statistics
for each test in the HTML report, whether or not the "--hypothesis-
show-statistics" argument was passed to show them in the command-line
output.
This release teaches Hypothesis to distinguish between errors based on
the cause or context of otherwise identical exceptions, which
is particularly useful when internal errors can be wrapped by a
library-specific or semantically appropriate exception such as:
try:
do_the_thing(foo, timeout=10)
... (truncated)
Commits
b1184ec Bump hypothesis-python version to 6.3.1 and update changelog
c8d7875 Merge pull request #2853 from Zac-HD/efficient-filter
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Bumps hypothesis from 3.23.3 to 6.3.1.
Release notes
Sourced from hypothesis's releases.
... (truncated)
Commits
b1184ec
Bump hypothesis-python version to 6.3.1 and update changelogc8d7875
Merge pull request #2853 from Zac-HD/efficient-filter37b9f12
Review updatesfd269b8
Simple predicate rewritingc5dca18
Merge pull request #2864 from Zalathar/pytest-strict-markersc47e699
Change pytest --strict to --strict-markersf1ca0a3
Bump hypothesis-python version to 6.3.0 and update changelog1411b1c
Merge pull request #2865 from Zalathar/pytest-4623478b3
Bump required pytest version to 4.6d760621
Merge pull request #2858 from HypothesisWorks/create-pull-request/patchDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)