Lines Matching refs:fileobj
138 f = gzip.GzipFile(fileobj=io.BytesIO(compressed), mode='rb')
148 fileobj = f.fileobj
149 self.assertFalse(fileobj.closed)
151 self.assertTrue(fileobj.closed)
160 fileobj = f.fileobj
161 self.assertFalse(fileobj.closed)
163 self.assertTrue(fileobj.closed)
294 self.assertTrue(hasattr(f.fileobj, "name"))
295 self.assertEqual(f.fileobj.name, self.filename)
389 with gzip.GzipFile(fileobj=buf, mode="wb") as f:
393 with gzip.GzipFile(fileobj=buf, mode="rb") as f:
431 with gzip.GzipFile(fileobj=f, mode="w") as g:
454 decomp = gzip.GzipFile(fileobj=bomb)
467 with gzip.GzipFile(fileobj=io.BytesIO(datac), mode="rb") as f:
473 with gzip.GzipFile(fileobj=buf, mode="wb") as f:
484 with gzip.GzipFile(fileobj=io.BytesIO(truncated)) as f:
486 with gzip.GzipFile(fileobj=io.BytesIO(truncated)) as f:
491 with gzip.GzipFile(fileobj=io.BytesIO(truncated[:i])) as f:
499 with gzip.GzipFile(fileobj=io.BytesIO(gzdata)) as f: