diff --git a/tests/test_audioframe.py b/tests/test_audioframe.py index d67e181ce..c6bf87b3f 100644 --- a/tests/test_audioframe.py +++ b/tests/test_audioframe.py @@ -115,11 +115,11 @@ def test_from_ndarray_value_error() -> None: AudioFrame.from_ndarray(array, format="flt", layout="mono") # incorrect number of dimensions - array = np.zeros(shape=(1, 160, 2), dtype="f4") + array2 = np.zeros(shape=(1, 160, 2), dtype="f4") with pytest.raises( ValueError, match="Expected numpy array with ndim `2` but got `3`" ) as cm: - AudioFrame.from_ndarray(array, format="flt", layout="mono") + AudioFrame.from_ndarray(array2, format="flt", layout="mono") # incorrect shape array = np.zeros(shape=(2, 160), dtype="f4")