Home | History | Annotate | Download | only in test

Lines Matching refs:aifc

6 import aifc
21 except (aifc.Error, AttributeError):
30 #This file contains chunk types aifc doesn't recognize.
31 self.f = aifc.open(self.sndfilepath)
34 f = self.f = aifc.open(self.sndfilepath)
44 f = self.f = aifc.open(self.sndfilepath)
60 f = self.f = aifc.open(self.sndfilepath)
61 fout = self.fout = aifc.open(TESTFN, 'wb')
62 fout.aifc()
67 fout = self.fout = aifc.open(TESTFN, 'rb')
73 f = self.f = aifc.open(self.sndfilepath)
74 fout = self.fout = aifc.open(TESTFN, 'wb')
75 fout.aifc()
87 fout = self.fout = aifc.open(TESTFN, 'rb')
105 f = self.f = aifc.open(testfile)
110 fout = aifc.open(testfile, 'wb')
112 with self.assertRaises(aifc.Error):
123 getattr(aifc, '_write_' + what)(f, x)
125 return getattr(aifc, '_read_' + what)(f)
129 self.assertEqual(read_written(x, 'float'), aifc._HUGE_VAL)
143 self.assertRaises(EOFError, aifc._read_ulong, f)
144 self.assertRaises(EOFError, aifc._read_long, f)
145 self.assertRaises(EOFError, aifc._read_ushort, f)
146 self.assertRaises(EOFError, aifc._read_short, f)
151 aifc._write_string(f, b'too long' * 255)