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

Method testSeekPostEndTwiceMultiStream

Lib/test/test_bz2.py:365–371  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

363 self.assertEqual(bz2f.read(), b"")
364
365 def testSeekPostEndTwiceMultiStream(self):
366 self.createTempFile(streams=5)
367 with BZ2File(self.filename) as bz2f:
368 bz2f.seek(150000)
369 bz2f.seek(150000)
370 self.assertEqual(bz2f.tell(), len(self.TEXT) * 5)
371 self.assertEqual(bz2f.read(), b"")
372
373 def testSeekPreStart(self):
374 self.createTempFile()

Callers

nothing calls this directly

Calls 7

createTempFileMethod · 0.95
BZ2FileClass · 0.90
lenFunction · 0.85
seekMethod · 0.45
assertEqualMethod · 0.45
tellMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected