From 9b3320314fc7a136efb8e2a53f178d1ed8fdef5b Mon Sep 17 00:00:00 2001 From: Hernan Grecco Date: Sat, 15 Feb 2025 00:56:23 -0300 Subject: [PATCH] test: trapezoid should be used for Numpy >= 2 and trapz otherwise --- pint/testsuite/test_numpy_func.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pint/testsuite/test_numpy_func.py b/pint/testsuite/test_numpy_func.py index 934efe09f..141fa44aa 100644 --- a/pint/testsuite/test_numpy_func.py +++ b/pint/testsuite/test_numpy_func.py @@ -210,6 +210,7 @@ def test_trapz(self): np.trapezoid(t, x=z), self.Q_(1108.6, "kelvin meter") ) + @helpers.requires_numpy_at_least("2.0") def test_trapz_no_autoconvert(self): t = self.Q_(np.array([0.0, 4.0, 8.0]), "degC") z = self.Q_(np.array([0.0, 2.0, 4.0]), "m")