MCPcopy Index your code
hub / github.com/python/cpython / test_write_array

Method test_write_array

Lib/test/audiotests.py:148–154  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

146 self.check_file(TESTFN, self.nframes, self.frames)
147
148 def test_write_array(self):
149 f = self.create_file(TESTFN)
150 f.setnframes(self.nframes)
151 f.writeframes(array.array('h', self.frames))
152 f.close()
153
154 self.check_file(TESTFN, self.nframes, self.frames)
155
156 def test_write_memoryview(self):
157 f = self.create_file(TESTFN)

Callers

nothing calls this directly

Calls 5

create_fileMethod · 0.95
check_fileMethod · 0.95
setnframesMethod · 0.80
writeframesMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected