Home | History | Annotate | Download | only in test

Lines Matching refs:with

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:
71 with self.assertRaises(ValueError):
73 with self.assertRaises(ValueError):
75 with self.assertRaises(ValueError):
80 with self.assertRaises(ValueError):
82 with self.assertRaises(ValueError):
88 with gzip.GzipFile(self.filename, 'ab') as f:
91 with gzip.GzipFile(self.filename, 'rb') as f:
99 with gzip.open(self.filename, 'wb', 9) as f:
102 with gzip.open(self.filename, "ab", 9) as f: # append
106 with gzip.open(self.filename, "rb") as zgfile:
119 with gzip.GzipFile(self.filename, 'rb') as f:
120 with io.BufferedReader(f) as r:
127 # Try .readline() with varying line lengths
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:
212 with open(self.filename, 'rb') as fRead:
253 with gzip.GzipFile(self.filename, "wb") as f:
258 with f:
265 with gzip.GzipFile(self.filename, "wb") as f:
273 with gzip.GzipFile(self.filename, "wb") as f:
276 # Pad the file with zeroes
277 with open(self.filename, "ab") as f:
280 with gzip.GzipFile(self.filename, "rb") as f:
288 with os.fdopen(fd, "wb") as f:
289 with gzip.GzipFile(fileobj=f, mode="w") as g:
293 # Gzip data with an extra field
297 with gzip.GzipFile(fileobj=io.BytesIO(gzdata)) as f: