fix: update pytest-mock requirement from <3.10.1 to <3.15.2
Type: Pull Request
State: Open
Association: None
Comments: 0
(9 months ago)
(9 months ago)
dependencies python
Updates the requirements on pytest-mock to permit the latest version.
Release notes
Sourced from pytest-mock's releases.
v3.15.1
2025-09-16
- #529: Fixed
itertools._tee object has no attribute error-- nowduplicate_iterators=Truemust be passed tomocker.spyto duplicate iterators.
Changelog
Sourced from pytest-mock's changelog.
3.15.1
2025-09-16
[#529](https://github.com/pytest-dev/pytest-mock/issues/529) <https://github.com/pytest-dev/pytest-mock/issues/529>_: Fixeditertools._tee object has no attribute error-- nowduplicate_iterators=Truemust be passed tomocker.spyto duplicate iterators.3.15.0
2025-09-04
- Python 3.8 (EOL) is no longer supported.
[#524](https://github.com/pytest-dev/pytest-mock/issues/524) <https://github.com/pytest-dev/pytest-mock/pull/524>_: Addedspy_return_itertomocker.spy, which contains a duplicate of the return value of the spied method if it is anIterator.3.14.1 (2025-05-26)
[#503](https://github.com/pytest-dev/pytest-mock/issues/503) <https://github.com/pytest-dev/pytest-mock/pull/503>_: Python 3.14 is now officially supported.3.14.0 (2024-03-21)
[#415](https://github.com/pytest-dev/pytest-mock/issues/415) <https://github.com/pytest-dev/pytest-mock/pull/415>_:MockTypeandAsyncMockTypecan be imported frompytest_mockfor type annotation purposes.
[#420](https://github.com/pytest-dev/pytest-mock/issues/420) <https://github.com/pytest-dev/pytest-mock/issues/420>_: Fixed a regression which would causemocker.patch.objectto not being properly cleared between tests.3.13.0 (2024-03-21)
[#417](https://github.com/pytest-dev/pytest-mock/issues/417) <https://github.com/pytest-dev/pytest-mock/pull/417>_:spynow hasspy_return_list, which is a list containing all the values returned by the spied function.pytest-mocknow requirespytest>=6.2.5.[#410](https://github.com/pytest-dev/pytest-mock/issues/410) <https://github.com/pytest-dev/pytest-mock/pull/410>: pytest-mock'ssetup.pyfile is removed. If you relied on this file, e.g. to install pytest usingsetup.py install, please seeWhy you shouldn't invoke setup.py directly <https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html#summary>for alternatives.3.12.0 (2023-10-19)
- Added support for Python 3.12.
- Dropped support for EOL Python 3.7.
mocker.resetall()now also resets mocks created bymocker.create_autospec([#390](https://github.com/pytest-dev/pytest-mock/issues/390)_)... _#390: pytest-dev/pytest-mock#390
3.11.1 (2023-06-15)
(This release source code is identical to
3.11.0except a small internal fix to deployment/CI)
... (truncated)
Commits
e1b5c62Release 3.15.1184eb19Setspy_return_iteronly when explicitly requested (#537)4fa0088[pre-commit.ci] pre-commit autoupdate (#536)f5aff33Fix test failure with pytest 8+ and verbose mode (#535)adc4187Bump actions/setup-python from 5 to 6 in the github-actions group (#533)95ad570[pre-commit.ci] pre-commit autoupdate (#532)e696bf0Fix standalone mock support (#531)5b29b03Fix gen-release-notes script7d22ef4Merge pull request #528 from pytest-dev/release-3.15.090b29f8Update CHANGELOG for 3.15.0- Additional commits viewable in compare view
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Pull Request Statistics
1
1
+1
-1
Package Dependencies
Technical Details
| ID: | 7916705 |
| UUID: | 2834907886 |
| Node ID: | PR_kwDOPxWOo86o-ULu |
| Host: | GitHub |
| Repository: | sacrosshowe/Sample-Python-Project |
| Merge State: | Unknown |