test(python): Avoid use of np.trapz
in tests to prepare for NumPy 2.0
#17365
This job succeeded
Loading
np.trapz
in tests to prepare for NumPy 2.0
#17365