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

Method test_prepend_error

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

Source from the content-addressed store, hash-verified

819 self.assertEqual(f.read(), b'Test')
820
821 def test_prepend_error(self):
822 # See issue #20875
823 with gzip.open(self.filename, "wb") as f:
824 f.write(data1)
825 with gzip.open(self.filename, "rb") as f:
826 f._buffer.raw._fp.prepend()
827
828 def test_issue44439(self):
829 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