From: Paul Brossier Date: Fri, 15 Apr 2011 08:28:22 +0000 (+0000) Subject: timeside/tests/testdecoding.py: update file size for ogg and mp3 X-Git-Tag: 0.3.2~44 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=557b3b0f5784244ca83dc316c4dbdc510dd3b8f5;p=timeside.git timeside/tests/testdecoding.py: update file size for ogg and mp3 --- diff --git a/timeside/tests/testdecoding.py b/timeside/tests/testdecoding.py index 69c2c8a..bbc9a2a 100644 --- a/timeside/tests/testdecoding.py +++ b/timeside/tests/testdecoding.py @@ -44,7 +44,12 @@ class TestLowLevel(TestCase): if eod: break # FIXME compute actual number of frames from file - self.assertEquals(totalframes, 352801) + if os.path.splitext(self.source)[-1].lower() == '.mp3': + self.assertEquals(totalframes, 355969) + elif os.path.splitext(self.source)[-1].lower() == '.ogg': + self.assertEquals(totalframes, 352833) + else: + self.assertEquals(totalframes, 352801) if __name__ == '__main__': unittest.main(testRunner=TestRunner())