MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_write_memoryview

Method test_write_memoryview

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

Source from the content-addressed store, hash-verified

148 self.check_file(TESTFN, self.nframes, self.frames)
149
150 def test_write_memoryview(self):
151 f = self.create_file(TESTFN)
152 f.setnframes(self.nframes)
153 f.writeframes(memoryview(self.frames))
154 f.close()
155
156 self.check_file(TESTFN, self.nframes, self.frames)
157
158 def test_incompleted_write(self):
159 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