Skip to content

Commit 19bda8c

Browse files
authored
Skip failing fluid test on Linux (#884)
1 parent c087748 commit 19bda8c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/test_fluid_simulation.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
# SOFTWARE.
2222

23+
import os
24+
2325
from ansys.dpf.core import examples
2426
import pytest
2527
from pytest import fixture
@@ -29,6 +31,7 @@
2931
from conftest import (
3032
SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_7_0,
3133
SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_7_1,
34+
SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_10_0,
3235
)
3336

3437

@@ -69,6 +72,10 @@ def test_simulation_str(self, fluent_simulation):
6972
assert fluent_simulation is not None
7073
assert str(fluent_simulation)
7174

75+
@pytest.mark.skipif(
76+
(not SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_10_0) and (os.name == "posix"),
77+
reason="Failing for DPF < 2025 R2 on Linux",
78+
)
7279
def test_simulation_flprj(self):
7380
simulation = post.FluidSimulation(
7481
flprj=examples.download_fluent_axial_comp()["flprj"]

0 commit comments

Comments
 (0)