Originally created by: dependabot[bot]
Bumps pytest from 8.3.2 to 8.4.2.
Sourced from pytest's releases.
8.4.2
pytest 8.4.2 (2025-09-03)
Bug fixes
#13478](https://github.com/href="https://redirect.github.com/pytest-dev/pytest/issues/13478">/issues/13478): Fixed a crash when using
console_output_style{.interpreted-text role="confval"} withtimesand a module is skipped.#13530](https://github.com/href="https://redirect.github.com/pytest-dev/pytest/issues/13530">/issues/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](https://github.com/href="https://redirect.github.com/pytest-dev/pytest/issues/13549">/issues/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](https://github.com/href="https://redirect.github.com/pytest-dev/pytest/issues/13559">/issues/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](https://github.com/href="https://redirect.github.com/pytest-dev/pytest/issues/13563">/issues/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](https://github.com/href="https://redirect.github.com/pytest-dev/pytest/issues/13577">/issues/13577): Clarify that
pytest_generate_testsis discovered in test modules/classes; other hooks must be inconftest.pyor plugins.Contributor-facing changes
- #13480](https://github.com/href="https://redirect.github.com/pytest-dev/pytest/issues/13480">/issues/13480): Self-testing: fixed a few test failures when run with
-Wdefaultor a similar override.- #13547](https://github.com/href="https://redirect.github.com/pytest-dev/pytest/issues/13547">/issues/13547): Self-testing: corrected expected message for
test_doctest_unexpected_exceptionin Python3.14.- #13684](https://github.com/href="https://redirect.github.com/pytest-dev/pytest/issues/13684">/issues/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](https://github.com/href="https://redirect.github.com/pytest-dev/pytest/issues/13461">/issues/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](https://github.com/href="https://redirect.github.com/pytest-dev/pytest/issues/13477">/issues/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](https://github.com/href="https://redirect.github.com/pytest-dev/pytest/issues/13497">/issues/13497): Fixed compatibility with
Twisted 25+.Improved documentation
- #13492](https://github.com/href="https://redirect.github.com/pytest-dev/pytest/issues/13492">/issues/13492): Fixed outdated warning about
faulthandlernot working on Windows.8.4.0
pytest 8.4.0 (2025-06-02)
... (truncated)
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](https://github.com/href="https://redirect.github.com/pytest-dev/pytest/issues/13687">/issues/13687) from pytest-dev/patchback/backports/8.4.x/e63f6e51c...975a60a Merge pull request #13686](https://github.com/href="https://redirect.github.com/pytest-dev/pytest/issues/13686">/issues/13686) from pytest-dev/patchback/backports/8.4.x/12bde8af6...7723ce8 Merge pull request #13683](https://github.com/href="https://redirect.github.com/pytest-dev/pytest/issues/13683">/issues/13683) from even-even/fix_Exeption_to_Exception_in_errorMe...b7f0568 Merge pull request #13685](https://github.com/href="https://redirect.github.com/pytest-dev/pytest/issues/13685">/issues/13685) from CoretexShadow/fix/docs-pytest-generate-tests2c94c4a add missing colon (#13640](https://github.com/href="https://redirect.github.com/pytest-dev/pytest/issues/13640">/issues/13640)) (#13641](https://github.com/href="https://redirect.github.com/pytest-dev/pytest/issues/13641">/issues/13641))c3d7684 Merge pull request #13606](https://github.com/href="https://redirect.github.com/pytest-dev/pytest/issues/13606">/issues/13606) from pytest-dev/patchback/backports/8.4.x/5f9938563...dc6e3be Merge pull request #13605](https://github.com/href="https://redirect.github.com/pytest-dev/pytest/issues/13605">/issues/13605) from The-Compiler/training-update-2025-07f87289c Fix crash with times output style and skipped module (#13573](https://github.com/href="https://redirect.github.com/pytest-dev/pytest/issues/13573">/issues/13573)) (#13579](https://github.com/href="https://redirect.github.com/pytest-dev/pytest/issues/13579">/issues/13579))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.
Originally posted by: dependabot[bot]
Labels
The following labels could not be found:
deps,python. Please create them before Dependabot can add them to a pull request.Please fix the above issues or remove invalid values from
dependabot.yml.