From 377e40fa8e01f6487a422d4e43dcca3bccfe6ad1 Mon Sep 17 00:00:00 2001 From: Thomas Fillon Date: Mon, 21 Apr 2014 18:52:00 +0200 Subject: [PATCH] Support variability of frames number in Gstreamer ogg in test_decoding - 2nd try --- tests/test_decoding.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5