From e50360c4501b5757e46f60ecc6620806b11b4f9c Mon Sep 17 00:00:00 2001 From: "Brandon T. Willard" Date: Wed, 28 Jun 2023 18:22:07 -0500 Subject: [PATCH] Add a deprecation warning filter for newer versions of NumPy Earlier versions of Aesara still use the deprecated `np.product` function. --- tests/test_tensor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_tensor.py b/tests/test_tensor.py index 3c81dbf1..88f54586 100644 --- a/tests/test_tensor.py +++ b/tests/test_tensor.py @@ -205,6 +205,7 @@ def test_join_mixed_ndim_supp(): ], ) @pytest.mark.parametrize("multivariate", (False, True)) +@pytest.mark.filterwarnings("ignore:`product`:DeprecationWarning") def test_measurable_dimshuffle(ds_order, multivariate): srng = at.random.RandomStream(2023532)