|
3 | 3 | # SPDX-License-Identifier: BSD-3-Clause |
4 | 4 | """Test the `thermo` module.""" |
5 | 5 |
|
6 | | -import platform |
7 | | -import sys |
8 | 6 | import warnings |
9 | 7 |
|
10 | 8 | import numpy as np |
|
43 | 41 | wet_bulb_temperature) |
44 | 42 | from metpy.calc.thermo import _find_append_zero_crossings |
45 | 43 | 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 |
48 | 45 | from metpy.units import is_quantity, masked_array, units |
49 | 46 |
|
50 | 47 |
|
@@ -251,24 +248,6 @@ def test_moist_lapse_starting_points(start, direction): |
251 | 248 | assert_almost_equal(temp, truth, 4) |
252 | 249 |
|
253 | 250 |
|
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 | | - |
272 | 251 | def test_parcel_profile(): |
273 | 252 | """Test parcel profile calculation.""" |
274 | 253 | levels = np.array([1000., 900., 800., 700., 600., 500., 400.]) * units.mbar |
|
0 commit comments