From ffe2c23c37957a175398c692b2c0b5cc4ada0cd7 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Wed, 9 Oct 2024 08:35:32 -0400 Subject: [PATCH] tests: newshape deprecated in favor of shape (#202) DeprecationWarning: `newshape` keyword argument is deprecated, use `shape=...` or pass shape positionally instead. (deprecated in NumPy 2.1) The only way to support old versions of NumPy is to pass positionally. Signed-off-by: Henry Schreiner --- tests/test_bootstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_bootstrap.py b/tests/test_bootstrap.py index 294fa8c..85d2f83 100644 --- a/tests/test_bootstrap.py +++ b/tests/test_bootstrap.py @@ -182,7 +182,7 @@ def test_resample_3d_parametric_normal_raises(): def test_resample_equal_along_axis(): - data = np.reshape(np.tile([0, 1, 2], 3), newshape=(3, 3)) + data = np.reshape(np.tile([0, 1, 2], 3), (3, 3)) for b in resample(data, size=2): assert_equal(data, b)