Mercurial > hg > auditok
changeset 163:3ddaa5eda8d4
Add tests for from_file with large_file=True for compressed audio
author | Amine Sehili <amine.sehili@gmail.com> |
---|---|
date | Sat, 02 Mar 2019 15:04:36 +0100 |
parents | ee883f8c372b |
children | 80820182921a |
files | tests/test_io.py |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test_io.py Sat Mar 02 15:01:05 2019 +0100 +++ b/tests/test_io.py Sat Mar 02 15:04:36 2019 +0100 @@ -283,6 +283,12 @@ filename = "tests/data/test_16KHZ_mono_400Hz.wav" audio_source = from_file(filename, large_file=True) self.assertIsInstance(audio_source, WaveAudioSource) + + + def test_from_file_large_file_compressed(self, ): + filename = "tests/data/test_16KHZ_mono_400Hz.ogg" + with self.assertRaises(AudioIOError): + from_file(filename, large_file=True) @genty_dataset( missing_sampling_rate=("sr",),