Skip to content

Commit

Permalink
tests: newshape deprecated in favor of shape (#202)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
henryiii authored Oct 9, 2024
1 parent 58e27f5 commit ffe2c23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit ffe2c23

Please sign in to comment.