From: Thomas Fillon Date: Mon, 21 Apr 2014 16:52:00 +0000 (+0200) Subject: Support variability of frames number in Gstreamer ogg in test_decoding - 2nd try X-Git-Tag: 0.5.5~1^2~38^2~28 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=377e40fa8e01f6487a422d4e43dcca3bccfe6ad1;p=timeside.git Support variability of frames number in Gstreamer ogg in test_decoding - 2nd try --- diff --git a/tests/test_decoding.py b/tests/test_decoding.py index 393d3ce..8a04376 100755 --- a/tests/test_decoding.py +++ b/tests/test_decoding.py @@ -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