From: yomguy Date: Wed, 19 Sep 2012 12:34:02 +0000 (+0200) Subject: fix mp3 length X-Git-Tag: 0.3.3^2~2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=4dbe4a2393bd2dcfd1fe77b940a44ff3df2bd156;p=timeside.git fix mp3 length --- diff --git a/tests/testdecoding.py b/tests/testdecoding.py index 45c787c..99e3e11 100644 --- a/tests/testdecoding.py +++ b/tests/testdecoding.py @@ -10,7 +10,7 @@ class TestDecoding(TestCase): def setUp(self): pass - + def testWav(self): "Test wav decoding" self.source = os.path.join (os.path.dirname(__file__), "samples/sweep.wav") @@ -40,7 +40,7 @@ class TestDecoding(TestCase): # FIXME compute actual number of frames from file if os.path.splitext(self.source)[-1].lower() == '.mp3': - self.assertEquals(totalframes, 355969) + self.assertEquals(totalframes, 353665) elif os.path.splitext(self.source)[-1].lower() == '.ogg': self.assertEquals(totalframes, 352833) else: