diff --git a/Tests/test_file_avif.py b/Tests/test_file_avif.py index 9fb4ea065d3..ffc4ce0210d 100644 --- a/Tests/test_file_avif.py +++ b/Tests/test_file_avif.py @@ -770,7 +770,6 @@ def test_seek_errors(self) -> None: 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 diff --git a/Tests/test_imagegrab.py b/Tests/test_imagegrab.py index da272da722f..01fa090dc3a 100644 --- a/Tests/test_imagegrab.py +++ b/Tests/test_imagegrab.py @@ -12,7 +12,6 @@ from .helper import assert_image_equal_tofile, skip_unless_feature -@pytest.mark.xdist_group(name="imagegrab-group") class TestImageGrab: @pytest.mark.skipif( os.environ.get("USERNAME") == "ContainerAdministrator", diff --git a/pyproject.toml b/pyproject.toml index 2b9fa7d0f3c..95609a2eb7d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -209,7 +209,7 @@ lint.isort.required-imports = [ max_supported_python = "3.14" [tool.pytest.ini_options] -addopts = "-ra --color=auto --numprocesses=auto --dist=loadgroup" +addopts = "-ra --color=auto --numprocesses=auto --dist=loadscope" testpaths = [ "Tests", ]