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

Method test_unseekable_read

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

Source from the content-addressed store, hash-verified

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