diff options
| author | Matti Picus <matti.picus@gmail.com> | 2023-03-26 22:22:31 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-26 22:22:31 +0300 |
| commit | cfcf4e1583c2ea0065da06df2e304f94c6187deb (patch) | |
| tree | db4fd89c2caefb3f16b38dfdd02b054b976f104e /numpy | |
| parent | a37978a106073eaec5cb9e0cb54785fafb639650 (diff) | |
| parent | df1e5502463ab7586366beaeef086404162cabf2 (diff) | |
| download | numpy-cfcf4e1583c2ea0065da06df2e304f94c6187deb.tar.gz | |
Merge pull request #23458 from seberg/product-depr
TST: Fix failing test (introduced deprecation after written)
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/core/tests/test_multiarray.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/tests/test_multiarray.py b/numpy/core/tests/test_multiarray.py index 77f651659..3f3c1de8e 100644 --- a/numpy/core/tests/test_multiarray.py +++ b/numpy/core/tests/test_multiarray.py @@ -7225,11 +7225,11 @@ class TestMatmulInplace: @pytest.mark.parametrize("a_shape,b_shape", SHAPES.values(), ids=SHAPES) def test_shapes(self, a_shape: tuple[int, ...], b_shape: tuple[int, ...]): - a_size = np.product(a_shape) + a_size = np.prod(a_shape) a = np.arange(a_size).reshape(a_shape).astype(np.float64) a_id = id(a) - b_size = np.product(b_shape) + b_size = np.prod(b_shape) b = np.arange(b_size).reshape(b_shape) ref = a @ b |
