From 81642d592e57861a82c00d0ee39e943b7e76365a Mon Sep 17 00:00:00 2001 From: Alexander Suvorov Date: Thu, 4 Jul 2024 18:37:14 +0200 Subject: [PATCH] Skip preemtion tests for win mac --- tests/python_tests/continuous_batching/test_preemption.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/python_tests/continuous_batching/test_preemption.py b/tests/python_tests/continuous_batching/test_preemption.py index ca7cb649aa..0e935b6d4e 100644 --- a/tests/python_tests/continuous_batching/test_preemption.py +++ b/tests/python_tests/continuous_batching/test_preemption.py @@ -1,9 +1,8 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 +import sys import pytest -from dataclasses import dataclass -from typing import List from common import get_model_and_tokenizer, save_ov_model_from_optimum, generate_and_compare_with_reference_text, \ DEFAULT_SCHEDULER_CONFIG, get_scheduler_config, run_test_pipeline, get_models_list, get_beam_search, get_greedy, \ @@ -36,6 +35,7 @@ def test_preemption(tmp_path, params): # todo: Anastasiia Pnevskaya: fix the test because it is hanging according max_new_tokens = std::numeric_limits::max() @pytest.mark.parametrize("dynamic_split_fuse", [True, False]) @pytest.mark.precommit +@pytest.mark.xfail(raises=AssertionError, condition=sys.platform in ["win32", "darwin"]) def test_preemption_with_multinomial(tmp_path, dynamic_split_fuse): generation_configs = multinomial_params.generation_config for config in generation_configs: