From 9dbabab518e0f216eab7d5ec02bb0996d01d8acc Mon Sep 17 00:00:00 2001 From: MarkGus0 <153433026+MarkGus0@users.noreply.github.com> Date: Wed, 2 Sep 2026 00:28:54 +0000 Subject: [PATCH] Exclude fixture setup from the 10s pytest-timeout Session-scoped redis_container pulls a Redis Docker image during setup. On a cold cache that pull can exceed the global 10s timeout and pytest-timeout kills the first test mid-pull, cascading into unrelated failures. Set timeout_func_only so only test bodies are timed; keep timeout = 10. Fixes #529 Co-authored-by: MarkGus0 --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index ee990eeb..ed7cb15e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -100,6 +100,9 @@ filterwarnings = [ ] asyncio_mode = 'auto' timeout = 10 +# Exclude fixture setup/teardown so session-scoped redis_container can pull the +# Docker image on a cold cache without being killed by the 10s per-test timeout. +timeout_func_only = true [tool.coverage.run] source = ['arq']