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

index 393d3ceb68ba28abb20cc24eb2aec5754c6dff5e..8a043768534d5980897130641820c1ab5f2d3965 100755 (executable)
@@ -126,7 +126,7 @@ class TestDecoding(unittest.TestCase):
         self.assertEqual(decoder.mime_type(), self.expected_mime_type)
 
         try:
-            self.assertEqual(totalframes, self.expected_totalframes)
+            self.assertIn(totalframes, [self.expected_totalframes, self.expected_totalframes +32])
         except AssertionError:
             self.assertEqual(totalframes, self.expected_totalframes + 32)    
         input_duration = decoder.input_totalframes / decoder.input_samplerate