mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
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:
@ -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"):
|
||||
|
Reference in New Issue
Block a user