build(deps-dev): bump pytest from 8.4.0 to 8.4.2
Bumps pytest from 8.4.0 to 8.4.2.
Release notes
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"}.8.4.1
pytest 8.4.1 (2025-06-17)
Bug fixes
#13461: Corrected
_pytest.terminal.TerminalReporter.isattyto support being called as a method. Before it was just a boolean which could break correct code when using-o log_cli=true).#13477: Reintroduced
pytest.PytestReturnNotNoneWarning{.interpreted-text role="class"} which was removed by accident in pytest [8.4]{.title-ref}.This warning is raised when a test functions returns a value other than
None, which is often a mistake made by beginners.See
return-not-none{.interpreted-text role="ref"} for more information.#13497: Fixed compatibility with
Twisted 25+.Improved documentation
- #13492: Fixed outdated warning about
faulthandlernot working on Windows.
Commits
-
bfae422Prepare release version 8.4.2 -
8990538Fix passenv CI in tox ini and make tests insensitive to the presence of the C... -
ca676bfMerge pull request #13687 from pytest-dev/patchback/backports/8.4.x/e63f6e51c... -
975a60aMerge pull request #13686 from pytest-dev/patchback/backports/8.4.x/12bde8af6... -
7723ce8Merge pull request #13683 from even-even/fix_Exeption_to_Exception_in_errorMe... -
b7f0568Merge pull request #13685 from CoretexShadow/fix/docs-pytest-generate-tests -
2c94c4aadd missing colon (#13640) (#13641) -
c3d7684Merge pull request #13606 from pytest-dev/patchback/backports/8.4.x/5f9938563... -
dc6e3beMerge pull request #13605 from The-Compiler/training-update-2025-07 -
f87289cFix crash withtimesoutput style and skipped module (#13573) (#13579) - Additional commits viewable in compare view