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

Method testSeekPostEndTwiceMultiStream

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

Source from the content-addressed store, hash-verified

373 self.assertEqual(bz2f.read(), b"")
374
375 def testSeekPostEndTwiceMultiStream(self):
376 self.createTempFile(streams=5)
377 with BZ2File(self.filename) as bz2f:
378 bz2f.seek(150000)
379 bz2f.seek(150000)
380 self.assertEqual(bz2f.tell(), len(self.TEXT) * 5)
381 self.assertEqual(bz2f.read(), b"")
382
383 def testSeekPreStart(self):
384 self.createTempFile()

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected