-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: quiet the test suites by quenching pointless DEBUG logs
audio_utils.py: we only ever want to see errors from pydub, no debug info, so set the pydub.converter logger to WARNING. This mostly has the effect of quietting previously very verbose test suites, but in general we just don't want to see DEBUG and INFO from pydub, WARNING and ERROR messages are plenty. basic_test_case.py: don't start by setting the log level to DEBUG, and in tearDown(), when it's DEBUG reset it to INFO, so an individual case can trigger DEBUG, e.g., with --debug, and test the effect, without making the rest of the suite verbose. remaining wish item I can't solve: test_force_align.py calls align_audio with debug_aligner=True once, for coverage, but I cannot figure out how to capture the logs from SoundSwallower, its own C stdout/stderr do not seem to be redirectable from Python.
- Loading branch information
Showing
3 changed files
with
13 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters