mirror of
https://github.com/python/cpython.git
synced 2025-11-08 01:21:42 +00:00
25 lines
472 B
Python
25 lines
472 B
Python
|
|
from test.test_support import findfile, run_unittest
|
||
|
|
import unittest
|
||
|
|
|
||
|
|
import aifc
|
||
|
|
|
||
|
|
|
||
|
|
class AIFCTest(unittest.TestCase):
|
||
|
|
|
||
|
|
def setUp(self):
|
||
|
|
self.sndfilepath = findfile('Sine-1000Hz-300ms.aif')
|
||
|
|
|
||
|
|
def test_skipunknown(self):
|
||
|
|
#Issue 2245
|
||
|
|
#This file contains chunk types aifc doesn't recognize.
|
||
|
|
f = aifc.open(self.sndfilepath)
|
||
|
|
f.close()
|
||
|
|
|
||
|
|
|
||
|
|
def test_main():
|
||
|
|
run_unittest(AIFCTest)
|
||
|
|
|
||
|
|
|
||
|
|
if __name__ == "__main__":
|
||
|
|
unittest.main()
|