From 625871b52c487077658582f72a0abbda559383e8 Mon Sep 17 00:00:00 2001 From: stefankoncarevic Date: Wed, 29 Jul 2026 14:15:56 +0200 Subject: [PATCH] [CI][Test] Fix pooling truncation test after VLLMError hierarchy change (#50241) Signed-off-by: Stefan Koncarevic --- tests/models/language/pooling/test_truncation_control.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/models/language/pooling/test_truncation_control.py b/tests/models/language/pooling/test_truncation_control.py index d41a3379dc..50e8cdbd06 100644 --- a/tests/models/language/pooling/test_truncation_control.py +++ b/tests/models/language/pooling/test_truncation_control.py @@ -2,6 +2,8 @@ # SPDX-FileCopyrightText: Copyright contributors to the vLLM project import pytest +from vllm.exceptions import VLLMValidationError + MODEL_NAME = "sentence-transformers/all-MiniLM-L12-v2" max_model_len = 128 @@ -60,7 +62,7 @@ def test_bigger_truncation_size( truncate_prompt_tokens = max_model_len + 1 with ( - pytest.raises(ValueError), + pytest.raises(VLLMValidationError), vllm_runner( model_name, runner="pooling", max_model_len=max_model_len ) as vllm_model,