diff --git a/tests/output/python/pyproject.toml b/tests/output/python/pyproject.toml
index 530461d83dc..b4ae11bb220 100644
--- a/tests/output/python/pyproject.toml
+++ b/tests/output/python/pyproject.toml
@@ -12,7 +12,7 @@ python = "^3.8.1"
 algoliasearch = { path = "../../../clients/algoliasearch-client-python", develop = true }
 ruff = "== 0.11.7"
 pyright = "== 1.1.391"
-pytest = "=8.3.5"
+pytest = "=8.4.0"
 python-dotenv = "=1.0.1"
 pytest-aiohttp = "=1.0.5"