diff --git a/tox.ini b/tox.ini
index 4101490b058e18162fd68c98493af3d14e82bdc9..38b064f0bf444ebeb4be30ed81c69151adc8aa4e 100644
--- a/tox.ini
+++ b/tox.ini
@@ -8,7 +8,8 @@ description = run the tests with pytest
 package = wheel
 wheel_build_env = .pkg
 deps =
-    pytest>=6
+    # TODO: Remove this once https://gitlab.teklia.com/atr/dan/-/issues/258 is done
+    pytest<8,>=6
     pytest-lazy-fixture
     pytest-responses
     -rrequirements.txt