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

Method test_unseekable_write

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

Source from the content-addressed store, hash-verified

202 self.check_file(testfile, self.nframes, self.frames)
203
204 def test_unseekable_write(self):
205 with UnseekableIO(TESTFN, 'wb') as testfile:
206 with self.create_file(testfile) as f:
207 f.setnframes(self.nframes)
208 f.writeframes(self.frames)
209
210 self.check_file(TESTFN, self.nframes, self.frames)
211
212 def test_unseekable_incompleted_write(self):
213 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