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

Method test_unseekable_write

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

Source from the content-addressed store, hash-verified

208 self.check_file(testfile, self.nframes, self.frames)
209
210 def test_unseekable_write(self):
211 with UnseekableIO(TESTFN, 'wb') as testfile:
212 with self.create_file(testfile) as f:
213 f.setnframes(self.nframes)
214 f.writeframes(self.frames)
215
216 self.check_file(TESTFN, self.nframes, self.frames)
217
218 def test_unseekable_incompleted_write(self):
219 with UnseekableIO(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
UnseekableIOClass · 0.70

Tested by

no test coverage detected