Lines Matching refs:fileobj
146 f = gzip.GzipFile(fileobj=io.BytesIO(compressed), mode='rb')
156 fileobj = f.fileobj
157 self.assertFalse(fileobj.closed)
159 self.assertTrue(fileobj.closed)
168 fileobj = f.fileobj
169 self.assertFalse(fileobj.closed)
171 self.assertTrue(fileobj.closed)
302 self.assertTrue(hasattr(f.fileobj, "name"))
303 self.assertEqual(f.fileobj.name, self.filename)
397 with gzip.GzipFile(fileobj=buf, mode="wb") as f:
401 with gzip.GzipFile(fileobj=buf, mode="rb") as f:
439 with gzip.GzipFile(fileobj=f, mode="w") as g:
445 with gzip.GzipFile(fileobj=f, mode='r') as g:
447 with gzip.GzipFile(fileobj=f, mode='w') as g:
449 with gzip.GzipFile(fileobj=f, mode='a') as g:
451 with gzip.GzipFile(fileobj=f, mode='x') as g:
454 gzip.GzipFile(fileobj=f, mode='z')
457 with gzip.GzipFile(fileobj=f) as g:
463 with gzip.GzipFile(fileobj=f) as g:
486 decomp = gzip.GzipFile(fileobj=bomb)
499 with gzip.GzipFile(fileobj=io.BytesIO(datac), mode="rb") as f:
505 with gzip.GzipFile(fileobj=buf, mode="wb") as f:
516 with gzip.GzipFile(fileobj=io.BytesIO(truncated)) as f:
518 with gzip.GzipFile(fileobj=io.BytesIO(truncated)) as f:
523 with gzip.GzipFile(fileobj=io.BytesIO(truncated[:i])) as f:
531 with gzip.GzipFile(fileobj=io.BytesIO(gzdata)) as f:
695 with gzip.GzipFile(fileobj=bytes_io, mode='wb') as gzip_file: