Skip to content

Commit

Permalink
Limit xfail to appropriate scipy
Browse files Browse the repository at this point in the history
  • Loading branch information
dcamron committed Nov 14, 2023
1 parent 2e88214 commit 4b8b92b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/calc/test_thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
virtual_temperature, virtual_temperature_from_dewpoint,
wet_bulb_temperature)
from metpy.calc.thermo import _find_append_zero_crossings
from metpy.testing import assert_almost_equal, assert_array_almost_equal, assert_nan
from metpy.testing import assert_almost_equal, assert_array_almost_equal, assert_nan, module_version_check
from metpy.units import is_quantity, masked_array, units


Expand Down Expand Up @@ -201,8 +201,9 @@ def test_moist_lapse_starting_points(start, direction):
@pytest.mark.xfail(platform.machine() == 'aarch64',
reason='ValueError is not raised on aarch64')
@pytest.mark.xfail(platform.machine() == 'arm64', reason='ValueError is not raised on Mac M2')
@pytest.mark.xfail(sys.platform == 'win32', reason='solve_ivp() does not error on Windows')
@pytest.mark.xfail(packaging.version.parse(scipy.__version__) < packaging.version.parse('1.7'),
@pytest.mark.xfail((sys.platform == 'win32') & module_version_check('scipy<1.11.3'),
reason='solve_ivp() does not error on Windows + SciPy < 1.11.3')
@pytest.mark.xfail(module_version_check('scipy<1.7'),
reason='solve_ivp() does not error on Scipy < 1.7')
def test_moist_lapse_failure():
"""Test moist_lapse under conditions that cause the ODE solver to fail."""
Expand Down

0 comments on commit 4b8b92b

Please sign in to comment.