From 5326c89803566a131c928f7fdd2100b75c981a42 Mon Sep 17 00:00:00 2001 From: Kunshang Ji Date: Sat, 27 Dec 2025 05:40:44 +0800 Subject: [PATCH] [XPU][CI]skip test_preprocess_error_handling due to fork/spawn issue (#31381) Signed-off-by: Kunshang Ji --- tests/v1/engine/test_preprocess_error_handling.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/v1/engine/test_preprocess_error_handling.py b/tests/v1/engine/test_preprocess_error_handling.py index 821ac168d9..13649a52be 100644 --- a/tests/v1/engine/test_preprocess_error_handling.py +++ b/tests/v1/engine/test_preprocess_error_handling.py @@ -15,9 +15,10 @@ MODEL_NAME = "hmellor/tiny-random-LlamaForCausalLM" def test_preprocess_error_handling(monkeypatch: pytest.MonkeyPatch): """Test that preprocessing errors are handled gracefully.""" - if current_platform.is_rocm(): + if current_platform.is_rocm() or current_platform.is_xpu(): pytest.skip( - "Skipped on ROCm: this test only works with 'fork', but ROCm uses 'spawn'." + "Skipped on ROCm/XPU: this test only works with 'fork', " + "but ROCm/XPU uses 'spawn'." ) assert not torch.cuda.is_initialized(), (