Sourced from pytest-mock's releases.
v3.15.0
2025-09-04
- Python 3.8 (EOL) is no longer supported.
- #524: Added
spy_return_itertomocker.spy, which contains a duplicate of the return value of the spied method if it is anIterator.
Sourced from pytest-mock's changelog.
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.
90b29f8
Update CHANGELOG for 3.15.053a6190
Drop support for Python 3.85aa9e9c
Add spy_return_iter attribute to spy (#524)dc6df75
Bump pypa/gh-action-pypi-publish in /.github/workflows (#526)b977d83
[pre-commit.ci] pre-commit autoupdate (#525)bd66c9c
[pre-commit.ci] pre-commit autoupdate (#523)f9e47b6
Bump the github-actions group with 2 updates (#521)3aec767
[pre-commit.ci] pre-commit autoupdate (#522)e09e5be
[pre-commit.ci] pre-commit autoupdate (#520)ba83a70
[pre-commit.ci] pre-commit autoupdate (#518)Sourced from freezegun's changelog.
1.5.5
- Allow parametrized arguments called 'func' (Broken in 1.5.4)
c9bf52c
Increase version number0f2bd7e
Merge pull request #582
from spulec/fixture-called-funca608055
Allow parametrized arguments with name 'func'Sourced from pytest's releases.
8.4.2
pytest 8.4.2 (2025-09-03)
Bug fixes
#13478: Fixed a crash when using
console_output_style{.interpreted-text role="confval"} withtimesand a module is skipped.#13530: Fixed a crash when using
pytest.approx{.interpreted-text role="func"} anddecimal.Decimal{.interpreted-text role="class"} instances with thedecimal.FloatOperation{.interpreted-text role="class"} trap set.#13549: No longer evaluate type annotations in Python
3.14when inspecting function signatures.This prevents crashes during module collection when modules do not explicitly use
from __future__ import annotationsand import types for annotations within aif TYPE_CHECKING:block.#13559: Added missing [int]{.title-ref} and [float]{.title-ref} variants to the [Literal]{.title-ref} type annotation of the [type]{.title-ref} parameter in
pytest.Parser.addini{.interpreted-text role="meth"}.#13563:
pytest.approx{.interpreted-text role="func"} now only importsnumpyif NumPy is already insys.modules. This fixes unconditional import behavior introduced in [8.4.0]{.title-ref}.Improved documentation
- #13577: Clarify that
pytest_generate_testsis discovered in test modules/classes; other hooks must be inconftest.pyor plugins.Contributor-facing changes
- #13480: Self-testing: fixed a few test failures when run with
-Wdefaultor a similar override.- #13547: Self-testing: corrected expected message for
test_doctest_unexpected_exceptionin Python3.14.- #13684: Make pytest's own testsuite insensitive to the presence of the
CIenvironment variable -- byogrisel{.interpreted-text role="user"}.
bfae422
Prepare release version 8.4.28990538
Fix passenv CI in tox ini and make tests insensitive to the presence of
the C...ca676bf
Merge pull request #13687
from pytest-dev/patchback/backports/8.4.x/e63f6e51c...975a60a
Merge pull request #13686
from pytest-dev/patchback/backports/8.4.x/12bde8af6...7723ce8
Merge pull request #13683
from even-even/fix_Exeption_to_Exception_in_errorMe...b7f0568
Merge pull request #13685
from CoretexShadow/fix/docs-pytest-generate-tests2c94c4a
add missing colon (#13640)
(#13641)c3d7684
Merge pull request #13606
from pytest-dev/patchback/backports/8.4.x/5f9938563...dc6e3be
Merge pull request #13605
from The-Compiler/training-update-2025-07f87289c
Fix crash with times output style and skipped module (#13573)
(#13579)