SIGN IN SIGN UP

fix(core): wait for ryuk more reliably, improve tests: long_running, filter logs (#984)

This was originally only to fix
https://github.com/testcontainers/testcontainers-python/issues/983 but I
took the time to fix some other stuff that made reading and running the
tests less optimal.

- Fix test_ryuk flakiness: replace fixed sleep with polling helper
(_wait_for_container_removed) that waits for Ryuk to finish reaping
- Suppress expected error logs in test_compose_volumes and
test_wait_strategies to reduce test noise
- Add __test__ = False to TestcontainersConfiguration to prevent pytest
from trying to collect it as a test class
- Add `long_running` pytest marker to pyproject.toml
- Mark DinD/DooD tests as long_running since they build Docker images
and take x4 than all the other tests combined
- Add `quick-core-tests` Makefile target to run core tests excluding
long_running tests for faster feedback loops

---------

Co-authored-by: David Ankin <daveankin@gmail.com>
R
Roy Moore committed
b12ae13e589a4ffe326c162a38df56eb30521d69
Parent: 5c67efb
Committed by GitHub <noreply@github.com> on 3/18/2026, 5:27:34 AM