This release makes it an explicit error to apply "@pytest.fixture" to
a function which has already been decorated with "@given()".
Previously, "pytest" would convert your test to a fixture, and then
never run it.
This patch fixes "from_type()" on a "TypedDict" with complex
annotations, defined in a file using "from future import
annotations". Thanks to Katelyn Gigante for identifying and fixing
this bug!
The Hypothesis pytest plugin was not outputting valid xunit2 nodes
when "--junit-xml" was specified. This has been broken since Pytest
5.4, which changed the internal API for adding nodes to the junit
report.
This also fixes the issue when using hypothesis with "--junit-xml" and
"pytest-xdist" where the junit xml report would not be xunit2
compatible. Now, when using with "pytest-xdist", the junit report will
just omit the "" node.
For more details, see this pytest issue, this pytest issue, and issue
#1935
This release changes the implementation of "infer" to be an alias for
"Ellipsis". E.g. "@given(a=infer)" is now equivalent to
"@given(a=...)". Furthermore, "@given(...)" can now be specified so
... (truncated)
Commits
da94895 Bump hypothesis-python version to 6.43.0 and update changelog
f44687b Merge pull request #3290 from Zac-HD/fixture-xor-given
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)
Bumps hypothesis from 5.23.11 to 6.43.0.
Release notes
Sourced from hypothesis's releases.
... (truncated)
Commits
da94895
Bump hypothesis-python version to 6.43.0 and update changelogf44687b
Merge pull request #3290 from Zac-HD/fixture-xor-given4217570
Ban turning PB-tests into fixtures82fa47c
given can't be used on fixtures7f94ce1
Bump hypothesis-python version to 6.42.3 and update changelogd3bf9c5
Merge pull request #3285 from silasary/forward_typed_dict8235f70
Fix rare BytesWarningd1efe56
Distinguish globals/locals tests9cb67a2
Correctly retrieve forward referenced annotations from typed dictionaries04be98e
Bump hypothesis-python version to 6.42.2 and update changelogDependabot 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)