Skip test_ind_worker_queue on Windows and macOS (flaky) (#162555)

Fixes https://github.com/pytorch/pytorch/issues/68643

It was closed by the bot yesterday and the issue was still there https://github.com/pytorch/pytorch/actions/runs/17595694816/job/49989589647.  It's better to just skip it directly in the code as this test has been disabled on Windows and MacOS since 2021 O_o
Pull Request resolved: https://github.com/pytorch/pytorch/pull/162555
Approved by: https://github.com/clee2000
This commit is contained in:
Huy Do
2025-09-10 07:05:10 +00:00
committed by PyTorch MergeBot
parent e1f0a69943
commit 98e22c8a69

View File

@ -25,6 +25,7 @@ from torch.testing._internal.common_device_type import instantiate_device_type_t
from torch.testing._internal.common_utils import (
IS_CI,
IS_JETSON,
IS_MACOS,
IS_S390X,
IS_SANDCASTLE,
IS_WINDOWS,
@ -3472,6 +3473,10 @@ class TestIndividualWorkerQueue(TestCase):
if current_worker_idx == num_workers:
current_worker_idx = 0
@unittest.skipIf(
IS_WINDOWS or IS_MACOS,
"Flaky on Windows and MacOS https://github.com/pytorch/pytorch/issues/68643",
)
def test_ind_worker_queue(self):
max_num_workers = None
if hasattr(os, "sched_getaffinity"):