From 557b3b0f5784244ca83dc316c4dbdc510dd3b8f5 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 15 Apr 2011 08:28:22 +0000 Subject: [PATCH] timeside/tests/testdecoding.py: update file size for ogg and mp3 --- timeside/tests/testdecoding.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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()) -- 2.39.5