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

Method flush

Lib/test/test_gzip.py:865–867  ·  view source on GitHub ↗
(self, mode=-1)

Source from the content-addressed store, hash-verified

863 def compress(self, data):
864 return b''
865 def flush(self, mode=-1):
866 self.modes.append(mode)
867 return b''
868 b = io.BytesIO()
869 fc = FakeCompressor()
870 with gzip.GzipFile(fileobj=b, mode='w') as f:

Callers 3

test_writeMethod · 0.45
test_flush_modesMethod · 0.45

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected