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

Method test_write_memoryview

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

Source from the content-addressed store, hash-verified

154 self.check_file(TESTFN, self.nframes, self.frames)
155
156 def test_write_memoryview(self):
157 f = self.create_file(TESTFN)
158 f.setnframes(self.nframes)
159 f.writeframes(memoryview(self.frames))
160 f.close()
161
162 self.check_file(TESTFN, self.nframes, self.frames)
163
164 def test_incompleted_write(self):
165 with open(TESTFN, 'wb') as testfile:

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