Home | History | Annotate | Download | only in test

Lines Matching refs:GzipFile

36         with gzip.GzipFile(self.filename, 'wb') as f:
52 with gzip.GzipFile(self.filename, 'r') as f:
59 with gzip.GzipFile(self.filename, 'rU') as f:
64 # Test that I/O operations on closed GzipFile objects raise a
69 f = gzip.GzipFile(self.filename, 'r')
78 f = gzip.GzipFile(self.filename, 'w')
88 with gzip.GzipFile(self.filename, 'ab') as f:
91 with gzip.GzipFile(self.filename, 'rb') as f:
115 # Issue #7471: a GzipFile can be wrapped in a BufferedReader for
119 with gzip.GzipFile(self.filename, 'rb') as f:
129 with gzip.GzipFile(self.filename, 'rb') as f:
141 with gzip.GzipFile(self.filename, 'rb') as f:
144 with gzip.GzipFile(self.filename, 'rb') as f:
153 with gzip.GzipFile(self.filename) as f:
172 with gzip.GzipFile(self.filename) as f:
180 with gzip.GzipFile(self.filename, 'w') as f:
187 with gzip.GzipFile(self.filename, 'r') as f:
192 with gzip.GzipFile(self.filename, mode) as f:
198 with gzip.GzipFile(self.filename, 'w', mtime = mtime) as fWrite:
200 with gzip.GzipFile(self.filename) as fRead:
209 with gzip.GzipFile(self.filename, 'w', mtime = mtime) as fWrite:
252 # GzipFile supports the context management protocol
253 with gzip.GzipFile(self.filename, "wb") as f:
255 f = gzip.GzipFile(self.filename, "rb")
265 with gzip.GzipFile(self.filename, "wb") as f:
273 with gzip.GzipFile(self.filename, "wb") as f:
280 with gzip.GzipFile(self.filename, "rb") as f:
285 # Issue #13781: Creating a GzipFile using a fileobj from os.fdopen()
289 with gzip.GzipFile(fileobj=f, mode="w") as g:
297 with gzip.GzipFile(fileobj=io.BytesIO(gzdata)) as f: