Skip to content

Commit 9b33203

Browse files
committed
test: trapezoid should be used for Numpy >= 2 and trapz otherwise
1 parent c9f7e91 commit 9b33203

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pint/testsuite/test_numpy_func.py

+1
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ def test_trapz(self):
210210
np.trapezoid(t, x=z), self.Q_(1108.6, "kelvin meter")
211211
)
212212

213+
@helpers.requires_numpy_at_least("2.0")
213214
def test_trapz_no_autoconvert(self):
214215
t = self.Q_(np.array([0.0, 4.0, 8.0]), "degC")
215216
z = self.Q_(np.array([0.0, 2.0, 4.0]), "m")

0 commit comments

Comments
 (0)