From 996903120cd078eb4a2544adb70e03fd059c8986 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Tue, 13 Jul 2010 23:08:01 +0000 Subject: Woops, test_sndhdr.py contains the same code twice: fix it --- Lib/test/test_sndhdr.py | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/Lib/test/test_sndhdr.py b/Lib/test/test_sndhdr.py index 4b4c857..1004688 100644 --- a/Lib/test/test_sndhdr.py +++ b/Lib/test/test_sndhdr.py @@ -21,27 +21,3 @@ class TestFormats(unittest.TestCase): if __name__ == '__main__': unittest.main() - -import sndhdr -import unittest -from test.support import findfile - -class TestFormats(unittest.TestCase): - def test_data(self): - for filename, expected in ( - ('sndhdr.8svx', ('8svx', 0, 1, 0, 8)), - ('sndhdr.aifc', ('aifc', 44100, 2, 5, 16)), - ('sndhdr.aiff', ('aiff', 44100, 2, 5, 16)), - ('sndhdr.au', ('au', 44100, 2, 5.0, 16)), - ('sndhdr.hcom', ('hcom', 22050.0, 1, -1, 8)), - ('sndhdr.sndt', ('sndt', 44100, 1, 5, 8)), - ('sndhdr.voc', ('voc', 0, 1, -1, 8)), - ('sndhdr.wav', ('wav', 44100, 2, -1, 16)), - ): - filename = findfile(filename, subdir="sndhdrdata") - what = sndhdr.what(filename) - self.assertNotEqual(what, None, filename) - self.assertSequenceEqual(what, expected) - -if __name__ == '__main__': - unittest.main() -- cgit v0.12