Skip to content

Commit 4e7f362

Browse files
committed
MNT: remove unneeded test
1 parent 16d83e5 commit 4e7f362

1 file changed

Lines changed: 1 addition & 22 deletions

File tree

tests/calc/test_thermo.py

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
# SPDX-License-Identifier: BSD-3-Clause
44
"""Test the `thermo` module."""
55

6-
import platform
7-
import sys
86
import warnings
97

108
import numpy as np
@@ -43,8 +41,7 @@
4341
wet_bulb_temperature)
4442
from metpy.calc.thermo import _find_append_zero_crossings
4543
from metpy.constants import Cp_d, kappa, Lf, Ls, Lv, Rd, T0
46-
from metpy.testing import (assert_almost_equal, assert_array_almost_equal, assert_nan,
47-
version_check)
44+
from metpy.testing import assert_almost_equal, assert_array_almost_equal, assert_nan
4845
from metpy.units import is_quantity, masked_array, units
4946

5047

@@ -251,24 +248,6 @@ def test_moist_lapse_starting_points(start, direction):
251248
assert_almost_equal(temp, truth, 4)
252249

253250

254-
@pytest.mark.xfail(platform.machine() == 'aarch64',
255-
reason='ValueError is not raised on aarch64')
256-
@pytest.mark.xfail(platform.machine() == 'arm64', reason='ValueError is not raised on Mac M2')
257-
@pytest.mark.xfail((sys.platform == 'win32') and version_check('scipy<1.11.3'),
258-
reason='solve_ivp() does not error on Windows + SciPy < 1.11.3')
259-
@pytest.mark.filterwarnings('ignore:overflow encountered in exp:RuntimeWarning')
260-
@pytest.mark.filterwarnings(r'ignore:invalid value encountered in \w*divide:RuntimeWarning')
261-
@pytest.mark.filterwarnings(r'ignore:.*Excess accuracy requested.*:UserWarning')
262-
@pytest.mark.filterwarnings(r'ignore:Saturation mixing ratio is undefined.*:UserWarning')
263-
def test_moist_lapse_failure():
264-
"""Test moist_lapse under conditions that cause the ODE solver to fail."""
265-
p = np.logspace(3, -1, 10) * units.hPa
266-
with pytest.raises(ValueError) as exc:
267-
moist_lapse(p, 6 * units.degC)
268-
269-
assert 'too small values' in str(exc)
270-
271-
272251
def test_parcel_profile():
273252
"""Test parcel profile calculation."""
274253
levels = np.array([1000., 900., 800., 700., 600., 500., 400.]) * units.mbar

0 commit comments

Comments
 (0)