π π A Python library for audio.
C audioaudio-processingaudio-productionaudio-researchaudio-unitaugmentationjucemachine-learningpybind11pythonvst3vst3-host
Fix flaky MP3 estimation test.
Peter Sobotd1c7e0f47c4b
diff --git a/tests/test_io.py b/tests/test_io.pyindex f9ace54..9277762 100644--- a/tests/test_io.py+++ b/tests/test_io.py@@ -1038,11 +1038,11 @@ def test_mp3_duration_estimate(samplerate: float, target_samplerate: float, chunaudio = f.read(f.frames)assert f.exact_duration_knownassert f.frames >= num_frames- assert f.frames < original_frame_estimate+ assert f.frames <= original_frame_estimateassert audio.shape[0] == f.num_channelsassert audio.shape[1] == f.framesassert audio.shape[1] >= num_frames- assert audio.shape[1] < original_frame_estimate+ assert audio.shape[1] <= original_frame_estimate# Seek back to the startf.seek(0)