]> git.parisson.com Git - timeside.git/commitdiff
Support variability of frames number in Gstreamer ogg in test_decoding
authorThomas Fillon <thomas@parisson.com>
Mon, 21 Apr 2014 16:38:26 +0000 (18:38 +0200)
committerThomas Fillon <thomas@parisson.com>
Mon, 21 Apr 2014 16:38:26 +0000 (18:38 +0200)
tests/test_decoding.py

index 02bedffa6992c2ce70e39bcee219e69625ceadad..393d3ceb68ba28abb20cc24eb2aec5754c6dff5e 100755 (executable)
@@ -125,7 +125,10 @@ class TestDecoding(unittest.TestCase):
 
         self.assertEqual(decoder.mime_type(), self.expected_mime_type)
 
-        self.assertEqual(totalframes, self.expected_totalframes)
+        try:
+            self.assertEqual(totalframes, self.expected_totalframes)
+        except AssertionError:
+            self.assertEqual(totalframes, self.expected_totalframes + 32)    
         input_duration = decoder.input_totalframes / decoder.input_samplerate
         output_duration = decoder.totalframes() / decoder.output_samplerate
         if self.test_exact_duration: