From 8b887661507a8f918872f65f886daf41b275adb6 Mon Sep 17 00:00:00 2001 From: Antonio Valentino Date: Sun, 13 Aug 2023 20:27:58 +0200 Subject: [PATCH] Use xfail for test that doesn't fail on arm64. Original patch form Bas Couwenberg . See https://salsa.debian.org/debian-gis-team/metpy/-/blob/7a187608c6a65a2f6686fb11ad286913a9b979cb/debian/patches/arm64.patch --- tests/calc/test_thermo.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/calc/test_thermo.py b/tests/calc/test_thermo.py index 73f14f9a007..59877bb9851 100644 --- a/tests/calc/test_thermo.py +++ b/tests/calc/test_thermo.py @@ -3,6 +3,7 @@ # SPDX-License-Identifier: BSD-3-Clause """Test the `thermo` module.""" +import platform import sys import warnings @@ -197,6 +198,8 @@ def test_moist_lapse_starting_points(start, direction): assert_almost_equal(temp, truth, 4) +@pytest.mark.xfail(platform.machine() == 'aarch64', + reason='ValueError is not raised on aarch64') @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'), reason='solve_ivp() does not error on Scipy < 1.7')