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

Method test_unseekable_read

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

Source from the content-addressed store, hash-verified

194 self.check_file(testfile, self.nframes, self.frames)
195
196 def test_unseekable_read(self):
197 with self.create_file(TESTFN) as f:
198 f.setnframes(self.nframes)
199 f.writeframes(self.frames)
200
201 with UnseekableIO(TESTFN, 'rb') as testfile:
202 self.check_file(testfile, self.nframes, self.frames)
203
204 def test_unseekable_write(self):
205 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