From 5a026b3f273ad9eb5d701508484e33a349380b8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matt=C3=A9o=20Baussart?= Date: Fri, 6 Dec 2024 14:42:32 +0100 Subject: [PATCH] fix(test): revert some failing changes (bis) --- tests/test_any.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_any.py b/tests/test_any.py index e60688bf8c..8d45aef3bc 100644 --- a/tests/test_any.py +++ b/tests/test_any.py @@ -24,7 +24,6 @@ import conftest from ansys.dpf import core as dpf -from conftest import raises_for_servers_version_under @conftest.raises_for_servers_version_under("7.0") @@ -135,7 +134,10 @@ def test_cast_workflow_any(server_type): assert new_entity.input_names == [] -@raises_for_servers_version_under("10.0") +@pytest.mark.skipif( + not conftest.SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_10_0, + reason="any does not support operator below 10.0", +) def test_cast_operator_any(server_type): entity = dpf.Operator(server=server_type, name="U") any_dpf = dpf.Any.new_from(entity)