gh-102978: Fixes :func:unittest.mock.patch not enforcing function
signatures for methods decorated with @classmethod or
@staticmethod when patch is called with autospec=True.
gh-103329: Regression tests for the behaviour of
unittest.mock.PropertyMock were added.
You can trigger a rebase of this PR 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)
> **Note**
> Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
Coverage: 95.487%. Remained the same when pulling b2e14d7be34694247d750725edd5fac355dc27fc on dependabot/pip/mock-5.0.2 into bff883d6c6223eb3a2af3caa8f16d1bdd98b9629 on master.
Bumps mock from 5.0.1 to 5.0.2.
Changelog
Sourced from mock's changelog.
Commits
03a3f12
Preparing for 5.0.2 release.b8a7ded
latest sync point079655c
gh-102978: Fix mock.patch function signatures for class and staticmethod deco...1c7bfef
gh-103329: Add regression test for PropertyMock with side effect (#103358)09b0b29
correct lastsync.txt revision4145e0f
Additionally test on pypy 3.9 / 7.3.11e132217
Actually use pypy to run pypy's CIYou can trigger a rebase of this PR 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)