Run AVIF leak tests in own group to avoid exceeding memory limit locally

This commit is contained in:
Hugo van Kemenade 2025-06-29 19:22:26 +03:00
parent 8a12470377
commit 3d09b1e4a6
2 changed files with 2 additions and 1 deletions

View File

@ -772,6 +772,7 @@ class TestAvifAnimation:
MAX_THREADS = os.cpu_count() or 1
@pytest.mark.xdist_group(name="leak-group")
@skip_unless_feature("avif")
class TestAvifLeaks(PillowLeakTestCase):
mem_limit = MAX_THREADS * 3 * 1024

View File

@ -209,7 +209,7 @@ lint.isort.required-imports = [
max_supported_python = "3.14"
[tool.pytest.ini_options]
addopts = "-ra --color=auto --numprocesses=auto"
addopts = "-ra --color=auto --numprocesses=auto --dist=loadgroup"
testpaths = [
"Tests",
]