diff --git a/pyproject.toml b/pyproject.toml
index 218a0eb85..bf3eb8387 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -91,7 +91,7 @@ test = [
     "jsonref",
     "mypy==1.9",
     "pyinstrument",
-    "pytest==8.3.5",
+    "pytest==8.4.0",
     "pytest-asyncio==0.21.2",
     "pytest-codspeed",
     "pytest-cov",