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
that "@given" will infer the strategies for all arguments of the
decorated function based on its annotations.
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.42.3.
Release notes
Sourced from hypothesis's releases.
... (truncated)
Commits
7f94ce1
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 changelogff4152b
Merge pull request #3289 from Zac-HD/fix-junit-xml2e57d1e
Tweak junit-xml test configade8567
Tune older-pytest CI configa390056
Remove branch for pytest < 3Dependabot 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)