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

Method test_prepend_error

Lib/test/test_gzip.py:820–825  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

818 self.assertEqual(f.read(), b'Test')
819
820 def test_prepend_error(self):
821 # See issue #20875
822 with gzip.open(self.filename, "wb") as f:
823 f.write(data1)
824 with gzip.open(self.filename, "rb") as f:
825 f._buffer.raw._fp.prepend()
826
827 def test_issue44439(self):
828 q = array.array('Q', [1, 2, 3, 4, 5])

Callers

nothing calls this directly

Calls 3

prependMethod · 0.80
openMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected