Skip to content

Commit

Permalink
Trying xfail PHE tests only on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Lee committed Oct 18, 2024
1 parent 0deb593 commit 63537d8
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,18 @@
Tests for Plate Heat Exchnager unit model.
Author: Akula Paul
"""

import sys
import pytest

from pyomo.environ import (
check_optimal_termination,
ConcreteModel,
Param,
units as pyunits,
value,
)
from pyomo.util.check_units import assert_units_consistent, assert_units_equivalent

from idaes.core import FlowsheetBlock
from idaes.models_extra.column_models.plate_heat_exchanger import (
PlateHeatExchanger as PHE,
Expand All @@ -37,7 +40,6 @@
from idaes.core.util.model_statistics import degrees_of_freedom
from idaes.core.util.testing import initialization_tester
from idaes.core.solvers import get_solver
from pyomo.util.check_units import assert_units_consistent, assert_units_equivalent


# -----------------------------------------------------------------------------
Expand Down Expand Up @@ -66,8 +68,10 @@ def test_config():


workaround_for_1294 = pytest.mark.xfail(
sys.platform
== "win32", # the failures only occur for Windows on GHA with Python <3.12
reason="These tests fail with Pyomo 6.7.0. See IDAES/idaes-pse#1294 for details",
strict=False, # the failures only occur for certain platforms, e.g. Windows on GHA
strict=False,
)


Expand Down

0 comments on commit 63537d8

Please sign in to comment.