From ec5fb392c499d7b949bbc28a486e1e19502b0186 Mon Sep 17 00:00:00 2001 From: gui217 Date: Tue, 30 Dec 2025 13:35:13 +0200 Subject: [PATCH] Clean up test comments after rnnoise filter fix --- tests/test_rnnoise_filter.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/tests/test_rnnoise_filter.py b/tests/test_rnnoise_filter.py index a448565c6..ea6e54a39 100644 --- a/tests/test_rnnoise_filter.py +++ b/tests/test_rnnoise_filter.py @@ -108,10 +108,6 @@ class TestRNNoiseFilter(unittest.IsolatedAsyncioTestCase): This reproduces the issue where mute/silence input (like "bx000") causes the resampler to return empty bytes. The filter should handle this gracefully without raising a memory error. - - Currently this test FAILS because the code raises MemoryError when empty bytes - are passed to denoise_chunk. After fixing the code to check for empty bytes - before calling denoise_chunk, this test should PASS. """ filter = RNNoiseFilter() @@ -137,14 +133,7 @@ class TestRNNoiseFilter(unittest.IsolatedAsyncioTestCase): return audio filter._resampler_in.resample = AsyncMock(side_effect=mock_resample) - - # Don't mock denoise_chunk - let it use the real pyrnnoise library - # Currently this will raise MemoryError when empty bytes are passed - # After the fix, this should return empty bytes gracefully - - # The filter should handle empty bytes gracefully without raising an error - # Currently this will FAIL because the code raises MemoryError - # After fixing, this should PASS + result = await filter.filter(mute_audio) # When resampler returns empty bytes, filter should return empty bytes