From e04f3e4a41998e62d5b0d603004002d3176d61f1 Mon Sep 17 00:00:00 2001 From: jiwaszki Date: Mon, 20 May 2024 14:02:49 +0200 Subject: [PATCH] [PyOV] Unskip test_cancel --- .../python/tests/test_runtime/test_async_infer_request.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bindings/python/tests/test_runtime/test_async_infer_request.py b/src/bindings/python/tests/test_runtime/test_async_infer_request.py index ea1bf1a9f2a4af..b7a7998b27603b 100644 --- a/src/bindings/python/tests/test_runtime/test_async_infer_request.py +++ b/src/bindings/python/tests/test_runtime/test_async_infer_request.py @@ -296,7 +296,6 @@ def __array__(self): infer_queue_list[i].get_output_tensor().data, np.abs(input_data)) -@pytest.mark.skip(reason="Sporadically failed. Need further investigation. Ticket - 95967") def test_cancel(device): core = Core() model = get_relu_model() @@ -308,13 +307,13 @@ def test_cancel(device): request.cancel() with pytest.raises(RuntimeError) as e: request.wait() - assert "[ INFER_CANCELLED ]" in str(e.value) + assert "Infer Request was canceled" in str(e.value) request.start_async({"data": img}) request.cancel() with pytest.raises(RuntimeError) as e: request.wait_for(1) - assert "[ INFER_CANCELLED ]" in str(e.value) + assert "Infer Request was canceled" in str(e.value) @pytest.mark.parametrize("share_inputs", [True, False])