Skip to content

Commit

Permalink
In pytest turn all warnings into errors, except certain warnings from…
Browse files Browse the repository at this point in the history
… librosa and its dependencies (#265)
hackdna authored Oct 29, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 47bb39e commit cbc3dca
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[pytest]
filterwarnings =
error
# Ignore specific DeprecationWarnings from librosa.core.intervals
ignore:path is deprecated.*:DeprecationWarning:librosa\.core\.intervals
# Ignore FutureWarning in forest.sycamore.read_audio
ignore:PySoundFile failed. Trying audioread instead.*:FutureWarning:forest\.sycamore\.read_audio
# Ignore specific DeprecationWarnings from audioread.rawread for aifc, audioop, and sunau
ignore:'aifc' is deprecated and slated for removal in Python 3.13.*:DeprecationWarning:audioread\.rawread
ignore:'audioop' is deprecated and slated for removal in Python 3.13.*:DeprecationWarning:audioread\.rawread
ignore:'sunau' is deprecated and slated for removal in Python 3.13.*:DeprecationWarning:audioread\.rawread

0 comments on commit cbc3dca

Please sign in to comment.