R. David Murray | 25b4add | 2009-04-29 13:17:37 +0000 | [diff] [blame^] | 1 | from test.test_support import findfile, run_unittest |
| 2 | import unittest |
| 3 | |
| 4 | import aifc |
| 5 | |
| 6 | |
| 7 | class AIFCTest(unittest.TestCase): |
| 8 | |
| 9 | def setUp(self): |
| 10 | self.sndfilepath = findfile('Sine-1000Hz-300ms.aif') |
| 11 | |
| 12 | def test_skipunknown(self): |
| 13 | #Issue 2245 |
| 14 | #This file contains chunk types aifc doesn't recognize. |
| 15 | f = aifc.open(self.sndfilepath) |
| 16 | f.close() |
| 17 | |
| 18 | |
| 19 | def test_main(): |
| 20 | run_unittest(AIFCTest) |
| 21 | |
| 22 | |
| 23 | if __name__ == "__main__": |
| 24 | unittest.main() |