Skip to content

Commit

Permalink
Fix mypy error
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Dec 9, 2024
1 parent ce45f1d commit 6839e9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_audioframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 6839e9f

Please sign in to comment.