Skip to content

Commit 3d09b1e

Browse files
committed
Run AVIF leak tests in own group to avoid exceeding memory limit locally
1 parent 8a12470 commit 3d09b1e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Tests/test_file_avif.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,7 @@ def test_seek_errors(self) -> None:
772772
MAX_THREADS = os.cpu_count() or 1
773773

774774

775+
@pytest.mark.xdist_group(name="leak-group")
775776
@skip_unless_feature("avif")
776777
class TestAvifLeaks(PillowLeakTestCase):
777778
mem_limit = MAX_THREADS * 3 * 1024

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ lint.isort.required-imports = [
209209
max_supported_python = "3.14"
210210

211211
[tool.pytest.ini_options]
212-
addopts = "-ra --color=auto --numprocesses=auto"
212+
addopts = "-ra --color=auto --numprocesses=auto --dist=loadgroup"
213213
testpaths = [
214214
"Tests",
215215
]

0 commit comments

Comments
 (0)