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

Method testSeekPostEndTwice

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

Source from the content-addressed store, hash-verified

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

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